Questions tagged [views]

The Views module allows creating lists of content with a flexible query builder.

Filter by
Sorted by
Tagged with
1
vote
1answer
816 views

Tiered HTML lists using Views and Taxonomy?

I would like Views to output an HTML unordered list of a certain vocabulary (Taxonomy Term). This is not a problem... the problem is that the list is rendered flat, instead of showing the parent>...
5
votes
3answers
2k views

Update a view page content without refreshing the page

Is there a module that updates a view automatically when it is changed, without refreshing the view page? For example, when a new node is added to the view or deleted from the view, or a node is ...
4
votes
2answers
1k views

Views RSS post date removal

What is the best way to remove the post date from a views created RSS feed? I have a calendar that I have created a feed for, but it is being sorted by a cck date value, making the post date not ...
17
votes
9answers
24k views

How can I create a view of child nodes based on the menu relationship?

Say you have the following pages in a menu tree: Projects Project One Project Two Project Three I'm looking for a way to create a view that will be embedded in the Project (parent) page that will ...
2
votes
1answer
353 views

Views filter depending on the number of node references

I have a content type A that has a node reference to a content type B. How can I create a view that show A nodes, and either filter by or sort by the number of references to the content type B? (Let'...
2
votes
2answers
2k views

Node reference autocomplete views issue

Firstly, apologies if I use some incorrect terminology - I'm still very much a Drupal newbie! I'm creating a band website using Drupal 6 with CCK, Views, Date, Calendar, Link, Location and GMap. It ...
3
votes
2answers
7k views

How do I add <div> tags to the output of a view list?

The output of a view I am using contains the following code. <li class="views-row views-row-1 views-row-odd views-row-first"> <div class="views-field-field-cimg-fid"> <span ...
2
votes
1answer
994 views

Invoking the rate module in views template file doesn't work

I have installed both the Views and Rate modules. In the views-view-fields.tpl.php file, I put the following code. $node = node_load($row->nid); echo $node->content['rate_poll']['#value']; ...
8
votes
4answers
22k views

Using a custom view for a taxonomy term page

Using Drupal 7 and Views 7.x-3.0-beta3, what is the best way to have a taxonomy page use a custom view? For example, in Path Auto I have a rule that points the URL alias countries/england towards ...
12
votes
1answer
5k views

Views 3 doesn't recognize a declared handler. Why not?

In modules/addressfield/addressfield.module I have: /** * Implements hook_views_api(). */ function addressfield_views_api() { return array( 'api' => 3, 'path' => drupal_get_path('...
3
votes
1answer
126 views

Is there a way to know the view type from PHP code?

Is there a way to know the view type (page or block) from PHP code? if (views type is block) { echo "This is a block view."; } elseif (views type is page) { echo "This is a page view."; }
4
votes
1answer
730 views

How to alter the Views field Format drop-down menu

I am exporting some XML feeds using Views. One of these fields needs to look like this: <image>http://example.com/path/to/myimage.jpg</image> I am storing my image in a CCK field. When ...
4
votes
3answers
161 views

Easy content management for a Views powered site

I'm building sites using Views and Panels, as you do. When handing over to the client/content editor, I want to make things as user-friendly as possible. Ideally this means they don't need to get ...
1
vote
2answers
399 views

Can I expose the signup form through views 2?

I am using Signup and Views in Drupal 6 (I can't install Drupal 7), and I created a view that lists all the nodes for which users can signup. Now I want to enable users to signup for one of these ...
1
vote
1answer
964 views

Creating individual fields from a multi-column Field API widget

This references the Addressfield and Views modules. I would like to have extended Views support for the Addressfield module like the Location module does. Some of the extra fields that the Location ...
0
votes
1answer
761 views

Node:Link token in views

I want to change the text shown for the Node:Link field, which by default is "View". How can I change it?
9
votes
7answers
10k views

How can I filter the taxonomy terms by language?

I have searched a way to filter the taxonomy terms by language (as done for nodes), but I didn't find any way to do it. Does the Views module support that filter in taxonomies too, or just in nodes? ...
1
vote
1answer
180 views

Why can't I output it?

stdClass Object( [nid] => 98 ....... [title] => hello world! [body] => ........ [field_img] => Array( [0] => Array( [fid] => 200 [list] => 1 [...
11
votes
2answers
6k views

Converting Term names with special characters to Term ID's in Views

I have a view where I want to use multiple termID's as arguments. I want to use a term name from the url and convert it to a termID. I've managed to do this easily enough and it works with simple 1 ...
3
votes
3answers
2k views

Display referenced node field in view

I have a view made up of nodes that include node reference fields. I would like to pull in a field from each of the nodes being referenced for display in my view. I know that is a little confusing ...
2
votes
2answers
1k views

how to overwrite the views output?

I used Views with 6 fields. I want to overwrite the output for 4 fields, and add "more >>" under one fields output, and make the "more" link to the node. I know that creating 4 template files will get ...
2
votes
1answer
135 views

How to use Views to obtain this?

I want to use the Views module to obtain the number of comments associated to a node, and show it as "1 comment," "5 comments." How do I do this?
11
votes
3answers
5k views

Is there a way to consume external web services and show results in Views?

I have an external web service, which can be accessed using a HTTP call (with parameters passed as query string), and that returns the result in XML format. I would like to use Drupal to access that ...
4
votes
1answer
968 views

How to convert image URLs in Drupal node's fields while rendering?

I have developed a new CCK module using Plupload where users can drag and upload images using native HTML5 apis. Since, I do not know how to drag images directly inside CKEditor, what I am doing is ...
4
votes
2answers
487 views

Uncooperative Access Control settings for View in a Panel

I have a "Project" custom content type, and a View displaying existing Projects. The site has two types of users, with most users permissions set to only view Projects they created. The other user ...
4
votes
4answers
3k views

How to design a page created using Views

I have created a page with help of the Views module, and it is perfectly doing the job. I need to design the page on my own. How can I do this?
9
votes
1answer
1k views

Does leaving the Views UI module enabled affect performance?

I noticed that the "Disable Developer Modules" link in the Administration Menu module disabled the Views UI module. I'm under the impression that the purpose of disabling the developer modules is to ...
7
votes
5answers
4k views

Change the default selection for a Views 2 exposed filter

I have an exposed filter in my View that allows users to choose between two different content types. The default value for the exposed filter seems to be chosen by whichever content type comes first ...
2
votes
2answers
3k views

How to display translated term names in exposed form in block

So I've got a views page displaying a list of nodes from specific content type. This view has filter form exposed in a block. Some of the filters in the form are vocabularies. I'm using the BEF ...
0
votes
2answers
1k views

Show the view result only when users enter a value for the exposed fields

I want that a view shows its result only when users enter a value in the exposed form fields. Is there a way I can get this done? I am using AJAX, and the view is displayed as block. Most of the ...
2
votes
3answers
648 views

Creating a view that shows all events and the users that have signed up for each event

I am using the Signup module, and I am looking to create a view that shows all events and the avatars (default Drupal user picture field) of the users that have signed up for each event. Here is a ...
2
votes
3answers
598 views

How can I form a Views query that retrieves all nodes that are referenced by a node in another content type?

I have a content type of Artist. I also have a content type of Release. The Artist content type has a node reference field that points to the Release content type. This node reference field allows an ...
2
votes
1answer
76 views

How to write a view of a user signed up nodes?

There is a content-type (event) with signup enabled. I want to show, on a user profile, the events this user has already signed up. I am having several frustrations with the signup relations and ...
2
votes
1answer
1k views

Views2 Handlers: Fatal Error Class 'views_handler_field' not found

I am working on a module and want exposing some fields to Views and provide some custom filters. But I can't extend any Views classes without drawing a fatal error. My code looks something like this. ...
2
votes
1answer
721 views

Dynamic ordering of views based on argument

I'm sure this is possible, I'm just looking for some advice on the best way to approach it. Here's the situation: We have some English content. If the user is in Australia, we want to show them all ...
13
votes
5answers
10k views

Is it possible to dynamically set Views' pager settings?

Say for instance, you have a view that displays when viewing a certain node type, but you want the pager settings to be different for each individual node. I was thinking of making a CCK field like "...
9
votes
2answers
6k views

views Relationships and argument?

What are the relationships and arguments in Views? How do I use them? I have read some tutorials, but still don't know how to use them. Can someone explain them more clearly? Thank you.
3
votes
3answers
598 views

Can node reference be altered to include views pages?

I have a site where 'related pages' is a node reference CCK field for a node. Authors can add related pages (1 or more) to a node with the autocomplete functionality of node reference. My question is ...
4
votes
1answer
595 views

Pointing the Views handler for Node Body at another field handler

I want to be able to use a CCK field as my node body without affecting interoperability with Views generated by independent modules. Using hook_data_alter(), I have attempt to re-target the Views node ...
3
votes
2answers
816 views

Views as definition list?

Is there a way to output the content of a view as a definition list? Example: <dl> <dt>Nodes title</dt> <dd>Nodes content</dd> <dt>Another nodes title</dt&...
1
vote
1answer
305 views

Output Flexifield content as Excel file?

I'm using Drupal 6 and Flexifield to create an extensible CCK content type for doing various measurements. The content type is composed of three flexifield fields -- "levels", "rooms" and "fixtures", ...
5
votes
1answer
715 views

Group ID Filter in Block?

I want to show teasers of content posted to an OG group. I want public and private groups, so the user must have view access to that group to see the content. I have a Group (named "Group") and a ...
32
votes
5answers
30k views

Views and node count for taxonomy terms

How can I display the node count values for taxonomy terms in Views? with sorting the result list in descending order of node count.
2
votes
2answers
98 views

Why would my Views take longer to load when I'm logged in as a regular user than one I'm logged in as an administrator

I have a Views display that returns a 30 row table of node parameters that is taking about 16 seconds to load when I'm not logged in as either user 1 or one of the users with the administrator role. ...
5
votes
2answers
699 views

Creating a View filter for a CCK field

I have created a custom filter which displays some select options to the user in order to filter a view. However, I am uncertain how to add this using the hook_views_data() hook, being that the table ...
5
votes
2answers
2k views

Replace summary/description with another field in Views RSS output

I have a view for an RSS feed which uses the node output (only option it seems when RSS style is selected) so I cant choose custom fields. But, as the body field is 'text and summary' the RSS view ...
6
votes
2answers
8k views

How do I override a default view template from another module?

Drupal provides hook_theme(). But is there a hook_theme_alter()? I'm looking for something like hook_menu_link_alter(), which overrides hook menu entries, but for the theme. I want to modify a view ...
2
votes
2answers
3k views

display all products in a single page (without using pager) ubercart

I'm trying to display all products on a single page without a pager. Some sites have this functionality where you can click from page to page, or you can choose 'show all'. Or there is a drop down box ...
5
votes
2answers
953 views

views with a SOAP back end

views3 supports plugable backends rather than a RDBMS, there are backends for solr, sparql, mongodb. Is there such a plug in to enable views to be a front end for a SOAP api? I have found a number ...
4
votes
2answers
702 views

How to invalidate a views cache based on custom criteria?

I have a custom content type (story) with a datetime field which determines if a story shows up in a the views that list the nodes of that content type; if the datetime defined for a node is newer ...