Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [views]

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

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
947 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
696 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 ...
2
votes
3answers
2k 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 ...
17
votes
3answers
19k 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 ...
3
votes
2answers
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 ...
4
votes
1answer
4k views

Views argument settings

Views 2 for Drupal 6 had settings for the arguments passed to a view. Does Views 3 for Drupal 7 still have those settings? Have those settings been renamed, or removed? This is the partial screenshot ...
2
votes
2answers
750 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 ...
3
votes
1answer
873 views

Image field theming

In Drupal 6 Views, there was an option to display the path of that file for an image type field, which is not present in Drupal 7. Where is it?
2
votes
1answer
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?
6
votes
3answers
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 ...
1
vote
1answer
147 views

what can be removed when minimizing hook_views_default_views in a module?

I'm working on a new drupal 6.x module (currently in sandbox awaiting review - http://drupal.org/sandbox/sdague/1072704) which exports it's data via views. When I implemented hook_views_default_views(...
1
vote
2answers
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 ...
8
votes
3answers
9k 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 ...
3
votes
1answer
596 views

How to create a view to display a block of referenced nodes?

I have a node type, called "policy", that has a bunch of CCK fields, including a Node Reference type. This is configured to reference an unlimited number of nodes. When the nodes are viewed, the ...
1
vote
4answers
283 views

Multiple “unused” Views displays

I'm creating a heavily customised website in Drupal. I want to use Views as a data source for a page with several options, where each option corresponds to a different display in a View. The reason I ...
3
votes
1answer
4k views

Are taxonomy fields exposed to views?

I am trying to create a view of nodes that have a taxonomy reference field. I can get the taxonomy term but do not see the taxonomy fields that I've created exposed to views. Google searches do not ...
8
votes
4answers
6k views

Customising the first item in a view

As a block on my homepage I'm trying to output: <ul> <li><a><img><p>Node 1</p></a></li> <li><a>Node 2</a></li> <li>&...
2
votes
2answers
793 views

Can I have a views field handler with an exposed form, or a filter handler with pre_query?

It's basically in the title, but here's the question: I'm trying to create a way to allow the user looking at a view to control which columns are visible. This isn't very hard, provided I can get ...
2
votes
2answers
916 views

How to create a node revision view with a “Node” row style?

Is it possible to create a node revision view with a "Node" row style? This does not seem to be an option in the Views interface. "Fields" is the only options presented for this type of view. Is ...
4
votes
4answers
5k views

How to return a View's content in search results?

We have a page display of a view that contains two or more nodes, but when searching for a keyword that would pertain to those nodes, only links to the individual nodes are returned. What we really ...
4
votes
4answers
5k views

Overriding a View table layout in module

I'm trying to override a view table from within my module. I can't locate what the arguments are suppose to be and in what order (for my hook_theme func). I copied the theme file from views/themes and ...
1
vote
1answer
158 views

“Node: Created day” mismatched, not reflecting the actual created day

Views Version: 7.x-3.0-alpha1 I was trying to create a blog archive view, like blog/yyyy/mm/dd, where blog/2011/03/10 is supposed to display all posts created on 2011, March 10th. However, the page ...
5
votes
4answers
3k views

Can I use simple XML to feed views?

I want to use the power of views to handle my data which comes from simple xml representing just a grid resp table <list> <listpos id="12312"> <foo>attr1</foo> <...
6
votes
2answers
957 views

What are effective optimization techniques for Views 3?

I have been doing a bit of profiling on a site I am working on which extensively uses views. Views takes up about 2/3 of the processing time even with the views caching on. Are there best practice ...
3
votes
1answer
207 views

List outline of books related to another book by a node reference field

I am using the book module with four content types: A, B,C and D. A is the content type for child pages and the rest are allowed in book outlines. I also have a node reference field in A that allows ...
3
votes
1answer
235 views

Is it possible to create a “Meta-Forum” view when using organic groups?

We are using Drupal 6.x with organic groups. The groups have very different users and permission sets, and each group has a forum. I was wondering if it is possible to have a kind of "Meta-Forum" ...
1
vote
2answers
101 views

I created a view of a page and a block, but cannot find either. Where are they?

I created a page view, but when I type in the address for it, it shows "Page not found". When I try to put the block where I want it to go, it doesn't show up, not even under disabled blocks. What ...
4
votes
2answers
735 views

How do I control the “more” link from a views content pane to point to a biblio filtered page

I'm using Drupal 6. I'm trying to create a view pane that lists three biblio items matching a particular term, and then offers a link to more items filtered using the same term. Biblio allows me to ...
1
vote
4answers
4k views

How to create a block with views filter form available on each page of the site?

This is for a site of a small real estate agency. I have a property_offer content type set up and offer type vocabulary, with 4 terms (Buying, Selling, Put out to lease and Take on lease). Then I ...
14
votes
5answers
3k views

Building a Views Filter

I want to build a filter for a custom module I built and have integrated with views. In essence, the module allows you to define types of relationships between different nodes. I'd like to create a ...
1
vote
1answer
406 views

Custom SQL: nodereference joins and latest VID

I'm having a heck of a time constructing a custom SQL query. The query has multiple nodereferences and needs to return the latest node revision. I understand joins pretty well, but for some reason ...
2
votes
1answer
1k views

Gmap Views Module - Popups are too big

I'm using GMAP module and its views counterpart. The issue I'm having is that I'm using a custom text field to display fields wrapped in HTML that I have pulled in from the query. However, the popup ...
5
votes
3answers
2k views

Views Slideshow vs list View+jquery cycle lite?

The rotating images on my work site's home page are created as a View in list format. I'm using the jQuery Cycle Lite plugin for the rotator effect. The cycle.lite.js file is set in the scripts array ...
3
votes
1answer
849 views

What argument to use in Views that excludes the node currently being displayed?

For instance: if you have a view that produces a list of titles of nodes of content type X, how can you make that list exclude the node that is currently displayed to a site visitor?
10
votes
5answers
17k views

hook_preprocess_page(): how to tell a views page?

Im writing a custom module that need to insert some javascript and css files only in a Views page. Im using hook_preprocess_page, but I can not tell if the current page is from a view: function ...
0
votes
2answers
121 views

How to generate a list of which Features are enabled in which Spaces?

I'm running a Drupal 6.x site with Organic Groups, Features, and Spaces, and I'm interested in generating a list of which Spaces have which Features enabled. Preferably a table, with Spaces along the ...
2
votes
1answer
102 views

Making responses to public nodes only viewable by the creator and the originator

I've got a prototype site built in D6, pertinent modules: CCK Comment block Node Comment Views Views Or The site is built around a list of open requests; to solicit a private response. These nodes ...
5
votes
2answers
3k views

Is it possible with Drupal Views to have AND and OR in a filter set?

I am attempting to build a view with four filters (A, B, C, D). With Views 3 it is possible to select whether you want these filters to be chained with AND statements or OR statements. Is there a way ...
6
votes
3answers
4k views

Duplicate taxonomy terms from view

So I haven't yet been able to find a solution to this without using a preprocess function to check for duplicates or just using the 'tagadelic' module.. it'd be nice to get some closure. How do I ...
5
votes
1answer
4k views

How to create relationships between Taxonomy vocabularies?

I'm trying to build a site with similar content conventions to Craigslist. The problem is, I don't really know a good way to create multiple vocabulary relationships in drupal. Here's the end result I ...
24
votes
4answers
11k views

Custom query in Views?

At some point I found the need to modify an SQL query generated by Views, in the end I overrode views_pre_execute and changed the query for that specific view. This feels like an ugly hack to me and ...
3
votes
4answers
2k views

Views 2 Conditional Filter

How can I apply a conditional fitler to a view (using views 2)? For example: I have a view which displays the teasers for several different node types using a filter on Node:Type in [Blog entry, ...
5
votes
4answers
4k views

How to access data from external MS SQL database tables in a Drupal site running on MySQL

I am currently working a academic medical department that uses a lot of MS SQL databases because faculty set them up - making us the maintainers :( We also recently launched Drupal 6 site on LAMP, ...
12
votes
3answers
11k views

What does vid mean

I have designed a view and I see this query in the preview section: SELECT node.nid AS nid, node_data_field_crm_history_brokerid.field_crm_history_brokerid_value AS ...