Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
5 votes
4 answers
13k views

Image field is not showing up in view/block

I am currently using Drupal 7, and I am trying to get my images to be displayed in a view on the main page. So far I have created: Created a content type containing a title, body and image field ...
Kyra's user avatar
  • 319
8 votes
2 answers
13k views

How do I create an AJAX filter for a view?

I have created a page using Views and it works fine. I want to add an AJAX filter to this page to allow visitors to filter the contents based on PubDate or by Taxonomy/Vocabulary for this content type....
Lina's user avatar
  • 183
6 votes
6 answers
5k views

Hide a view if less than N results

I wonder if it's possible to hide a view (as block view) if it has less than X results.
Disco's user avatar
  • 431
1 vote
1 answer
825 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>...
Garrett's user avatar
  • 287
5 votes
3 answers
3k 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 ...
Muhamad Bhaa Asfour's user avatar
17 votes
9 answers
26k 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 ...
Camsoft's user avatar
  • 3,139
2 votes
1 answer
357 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'...
Oscar Mederos's user avatar
3 votes
2 answers
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 ...
enjoylife's user avatar
  • 3,788
2 votes
1 answer
1k 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']; ...
enjoylife's user avatar
  • 3,788
8 votes
4 answers
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 ...
Chris Hawes's user avatar
12 votes
1 answer
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('...
Adam S's user avatar
  • 5,031
3 votes
1 answer
129 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."; }
enjoylife's user avatar
  • 3,788
4 votes
1 answer
741 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 ...
amateur barista's user avatar
1 vote
2 answers
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 ...
ate_f's user avatar
  • 11
1 vote
1 answer
1k 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 ...
Adam S's user avatar
  • 5,031
0 votes
1 answer
767 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?
enjoylife's user avatar
  • 3,788
8 votes
7 answers
11k 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? ...
mohamad salama's user avatar
1 vote
1 answer
182 views

Why can't I output it?

stdClass Object( [nid] => 98 ....... [title] => hello world! [body] => ........ [field_img] => Array( [0] => Array( [fid] => 200 [list] => 1 [...
enjoylife's user avatar
  • 3,788
11 votes
2 answers
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 ...
nickwshaw's user avatar
  • 171
2 votes
2 answers
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 ...
enjoylife's user avatar
  • 3,788
2 votes
1 answer
137 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?
enjoylife's user avatar
  • 3,788
11 votes
3 answers
6k 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 ...
Mugunth's user avatar
  • 241
4 votes
1 answer
980 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 ...
Ajinkya Kulkarni's user avatar
4 votes
2 answers
496 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 ...
Blake Senftner's user avatar
4 votes
4 answers
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?
Fero's user avatar
  • 1,547
2 votes
2 answers
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 ...
mmartinov's user avatar
  • 298
0 votes
2 answers
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 ...
user avatar
1 vote
3 answers
651 views

Create a view that shows all events and the users that have signed up for each event [closed]

I am using the Signup module, and I am trying to create a view that shows all events and the image associated to the users who signed up for each event. This is the exported view I have so far.
2 votes
1 answer
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 ...
Capi Etheriel's user avatar
2 votes
1 answer
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. ...
Codeblind's user avatar
  • 558
13 votes
5 answers
11k 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 "...
Jay's user avatar
  • 839
8 votes
2 answers
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.
enjoylife's user avatar
  • 3,788
3 votes
3 answers
600 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 ...
wiifm's user avatar
  • 5,290
4 votes
1 answer
610 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 ...
Grayside's user avatar
  • 484
3 votes
2 answers
855 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&...
tlattimore's user avatar
5 votes
1 answer
728 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 ...
MGParisi's user avatar
  • 166
34 votes
5 answers
33k views

Node count for taxonomy terms

How can I display the node count values for taxonomy terms with sorting the result list in descending order of node count?
ya.teck's user avatar
  • 5,692
2 votes
2 answers
104 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. ...
DKinzer's user avatar
  • 538
5 votes
2 answers
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 ...
Christian's user avatar
  • 801
5 votes
2 answers
971 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 ...
Jeremy French's user avatar
4 votes
2 answers
712 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 ...
Egil Hansen's user avatar
2 votes
3 answers
3k views

Can views pages be indexed and be searchable by apachesolr?

By default drupal will only send nodes to apachesolr, is there a way to send views pages to solr, so that they may show in the search index? I know this question seems a little out there, just ...
wiifm's user avatar
  • 5,290
16 votes
3 answers
20k views

Removing main content block on frontpage

I'm new to Drupal 7 and I'm looking to replace the frontpage's default main content block with an equivalent block generated from Views (gaining more control over the block in doing so). I have ...
irishbuzz's user avatar
  • 645
3 votes
2 answers
2k views

Creating a view block inside a fieldset using templates

I am trying to create a new .tpl.php for some of my views. I know how to create the file and display the elements the way I want, but only by changing the default views-view.tpl.php which would ...
Perbert's user avatar
  • 195
4 votes
1 answer
4k views

Are there still the settings for the arguments passed to a view?

Views 2 for Drupal 6 had settings for the arguments passed to a view. Does Views 3 for Drupal 7 still have those settings? This is the partial screenshot that I see when I edit the taxonomy term view (...
avpaderno's user avatar
  • 97.9k
2 votes
2 answers
755 views

Path associated to Views

I used Pathauto to create URLs for my nodes like gallery/[node:title]. I created a view with an argument, and the path is gallery/% (% is the node title), but when I point my browser to that URL, I ...
Sergiu B's user avatar
  • 165
2 votes
1 answer
107 views

How should I use a field in views?

I have a CCK field that I want to use in a view. How can I do it?
AmirHossein's user avatar
6 votes
3 answers
3k views

How to display the same views exposed form block twice?

I'm trying to display the same views exposed from block twice. Once in the left nav and once in content top. With multi block I can clone the block and I am able to display both. However, I would like ...
Jepedo's user avatar
  • 1,450
1 vote
2 answers
1k views

Views Slideshow Output different in IE vs Firefox/Chrome/Safari

A site I'm working on is using Views and the Views Slideshow plugin to generate a tabbed panel on the site. We modified the output of the plugin to display link names instead of IDs, which worked ...
dragonmantank's user avatar
7 votes
3 answers
10k views

Views 3 and HTML5 - how to override output for markup?

I have a view that I've created that selects blog posts based on a specific taxonomy term, creating a sort of "Featured Posts" view that I've embedded on the front page of my site. The issue I keep ...
PendragonDev's user avatar