Questions tagged [views]

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

Filter by
Sorted by
Tagged with
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
3 votes
1 answer
606 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 ...
Tim 's user avatar
  • 201
1 vote
4 answers
287 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 ...
Matthew Scharley's user avatar
3 votes
1 answer
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 ...
Jepedo's user avatar
  • 1,450
7 votes
4 answers
7k 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>&...
Daniel Nitsche's user avatar
2 votes
2 answers
856 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 ...
Ricky Morse's user avatar
11 votes
10 answers
6k views

deleting comments in bulk

how can I delete all comments at once? I have seen how to do it with nodes and bulkdelete module, How to delete all nodes of a given content type? but am looking at a similar solution for comments. ...
brian_d's user avatar
  • 317
2 votes
2 answers
924 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 ...
markdorison's user avatar
  • 5,604
4 votes
5 answers
6k 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 ...
nymo's user avatar
  • 193
4 votes
4 answers
6k 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 ...
lordg's user avatar
  • 705
1 vote
1 answer
164 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 ...
gilzero's user avatar
  • 6,037
5 votes
4 answers
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> <...
groovehunter's user avatar
6 votes
2 answers
991 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 ...
Jeremy French's user avatar
3 votes
1 answer
219 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 ...
Perbert's user avatar
  • 95
3 votes
1 answer
236 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" ...
Palmin's user avatar
  • 383
1 vote
2 answers
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 ...
Keith Groben's user avatar
4 votes
2 answers
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 ...
Ricky Morse's user avatar
1 vote
4 answers
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 ...
mmartinov's user avatar
  • 298
13 votes
5 answers
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 ...
lordg's user avatar
  • 705
1 vote
1 answer
413 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 ...
ack's user avatar
  • 2,149
2 votes
1 answer
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 ...
MrMaksimize's user avatar
5 votes
3 answers
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 ...
epersonae's user avatar
  • 1,290
3 votes
1 answer
854 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?
Jay's user avatar
  • 829
11 votes
5 answers
24k 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 ...
Strae's user avatar
  • 890
0 votes
2 answers
125 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 ...
smokris's user avatar
  • 2,655
2 votes
1 answer
104 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 ...
Richard Harrison's user avatar
5 votes
2 answers
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 ...
markdorison's user avatar
  • 5,604
6 votes
3 answers
5k 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 ...
Storsey's user avatar
  • 398
5 votes
1 answer
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 ...
Garrett's user avatar
  • 287
24 votes
4 answers
13k 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 ...
Mad Scientist's user avatar
3 votes
4 answers
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, ...
cjworden's user avatar
6 votes
4 answers
5k 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, ...
JeroenEijkhof's user avatar
13 votes
3 answers
14k 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 ...
user avatar

1
300 301 302 303
304