drupal-views

Drupal View - Don't render some fields for some nodes

What I'm trying to achieve is very simple, but a bit difficult to explain: I want to create a view to return the last 5 nodes based on some condition The fields I want to show are "Title,Abstract & Thumb" I want to show the thumb for only the first node, I don't want the thumb to be displayed for the rest Of course hiding the thumb v...

Drupal, Views: trimming text doesn't work because tags are not closed properly

hi, I have a node with a text area editable with CKEditor. THis means my customer can add italic style with it. Then I have a VIew in which I'm trimming this text area for each node to 140 characters. The problem is that if my customer adds italic style right before the treshold, the text is not closed, and I have html errors (for exa...

How to customize drupal search to show only taxonomy view pages?

Hi, I'm stuck and need your help! Setting: I have a Drupal 6 website and activated the view for taxonomy term pages. On my website a taxonomy page is composed of several different content types. All the different content pieces are tight together by the shared taxonomy term and displayed by the taxonomy view. Problem: When sea...

Pass an argument to a panel and reload using ajax

Hi All, I have a question, and I'm a complete ajax n00b and really need to make this work. I have 2 columns, one displays a list (from one view) and another is a single node display (also generated through a view). Each view is within its own pane in panels. How can I get a click from the list pane to update the argument passed to ...

how do i filter out content from a default Drupal View, based on what content is pulled into the attached view?

currently: i have a page view that is displaying all content that is flagged as "not featured" with a simple CCK dropdown. the attachment to the view displays all content that is "featured" and is styled to be a little more impressive. what i'd like to be able to do is have a few, say 3, featured items display at the top in the attach...

Drupal views relations question

Hi, In Drupal I have 3 content types( A, B, C ) see link. A and C contain a node reference to B. Now I have a view which queries fields from A from an argument. I want to also show fields from C trough the relationschip with B, so: A has a nodereference of ID:1, B has a Node ID:1, I want to show fields from C where nodereference of ID...

how to make a filter for View which find nodes that have a user_reference field referring current user?

I have a content type, named "Task". It has a cck user reference field named "assigned_user". I want to filter Tasks, which their assigned_user is current user. how can I use "Token Filter" for this for my view? I installed this module but I didn't find anywhere for inserting tokens in view filter. Does exist any better way? ...

Views 2: Filter Nodes by selected language

I have a Drupal 6 multilanguage installation and I want to filter the nodes displayed by a view based on the language the user selected. When adding "Node translation: Language" but I still get all entries. Any ideas what I missed? ...

Drupal Views exposed filter of Author name

I have a view which I would like to add an exposed filter of the author name. So I can filter all the posts created by "John Smith" etc. I can't seem to see it listed under filter. Is this possible to do? ...

Drupal Views exposed filter of Author name as a drop down

This is a follow up question to http://stackoverflow.com/questions/3880679/drupal-views-exposed-filter-of-author-name. The following question was answered and works. I can filter a view by user name. The user name is entered is entered by typing in a box and the box then auto completes. Rather then doing this I would like the list of use...

How to just show NodeQueue block on included nodes?

On my blog I have a series of posts on a common subject that I'd like to link together with a common navigation block, so that readers can easily jump forwards or backwards through the series. I've used NodeQueue to collect all the blog entries together in sequence. Putting the associated block in my sidebar gives me the navigation that...

Drupal, elements with odd or even id numbers in view

Hello I want to have two sliders on my site with the same content. Could somebody tell me is this possible to create html list with only even or odd elements? Regards ...

Views and NULL values

Whats the best way to have Views pull out records with NULL values for a CCK field? So far, with a simple filter of 'Is empty (NULL)' in the Views GUI does not return a record for me, but it should (I see them in the database). I also tried passing it as an argument: $handler->argument = 'NULL'; return $handler->argument; No results...

Drupal Views: Get nodes with the same taxonomy as the current node.

Hi Folks, I have a Content-Type with taxonomy-terms. It's a select-list, so it can have only one taxonomy - at least of that vocabulary. Now I need to build a view that lists all nodes with the same taxonomy. Thought that this wouldn't be too hard since it sounds pretty basic. Yet I can't get it working. Any ideas? I'm trying to avoid...

Drupal Views 3 rescan template files

Hi, I am having some issues with Views 3 on Drupal 7 Beta when rescanning template files. I've put a new template in my theme folder called views-view-fields--blog--block-1.tpl.php which is the filename Theme Information suggests. When I click "Rescan Template Files" the pane disappears and it doesn't bold the new template (and doesn't ...

Drupal View (Page) vs Taxonomy

Hi, I have the following problem: I use taxonomys (tx) as tags. They can be added when the node is created. So I don't know how many tx I have or what ID they have. The path of the tx is like the following: /foo/element1 /foo/element2 /foo/element3 ... The secound element is the tx. Now I want to use a view (page) to handle the tx-pa...

Drupal Views - Hide a Field if annother Field is not empty? / Show a Field unless its empty, then show a differnt Field?

With Drupal Views, how can I hide a Field if another Field is not empty? In other words, how can I show a Field unless its empty, then show a different Field? I have the following; Node1 fieldA - text for field A in Node 1 fieldB - text for field B in Node 1 Node2 fieldA - (empty) fieldB - text for field B in Node 2 I want to show fi...

views argument in the empty text field

hi. i am using the views 2 module. i have a view that gets a taxonomy term as an argument. i want my view to display a text, in case there are no found items, "Cannot find any $args[0]". where $args[0] is the view argument. but i cant figure out a way to add php code to the empty text configuration, i can see it supports filtered and fu...

$view->total_rows is wrong (sort of), I want "Items to display"

The "total_rows" property of my view returns the total rows (22), but not the number of items I have set the view to display (5) (through the Web UI Block->Basic Settings). How can I get this in a proper way without relying on (the possibly soon to be deprecated "result" property? for now Im using $totalRows = min($view->total_rows, c...

Drupal: Fatal error: Call to a member function delete() on a non-object

When I try to save or delete the view this message appears ... when deleting the error is in function delete(), when saving the error is in function validate(). I'm trying to get answer for 2 days already, browsing the drupal forum etc. I cannot get the solution. I'M STUCK! I cannot continue my work! IT'S HELL! People THANK YOU! EDI...