Questions tagged [drupal-views]

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

The Views module, written by Earl (MerlinofChaos) and Lynette Miles, is a Drupal module that allows creating lists of content (e.g. pages, RSS feeds, and blocks) with a flexible query builder. It is one of the most popular Drupal modules. Views 2.x is quite mature, Views 3.x is much newer but also more powerful.

Drupal manages content by storing it in a relational database and content can be retrieved by making queries to the database. Views provides a user interface (UI) for defining complex queries giving site developers the ability to select specific content without writing code. The module can be selected from the admin/structure/views menu option.

The Views UI

There are two primary form pages used to command the views module, the Views Management form and the Views Definition form. The Management form is the first page seen when selecting Views and displays all available View definitions along with some basic information about each. It includes options to enable or disable the View definition. By selecting a View definition's edit button, the user actual definition page is displayed. This page includes all the options available for settings to provide a specific view.

View Definitions

Basics

The options available for defining a view are extensive and it is recommended that the user spend some time reviewing its capabilities using the resources listed in this Wiki. Generally, when beginning a new definition, you define the basic parameters you want for the view including the type of display (page or block) the type of entity (node, user, taxonomy), the information you want displayed (full content, fields, feeds, images, etc), how you want to filter the content and the order for sorting it. This basic information is stored in a hidden master (it can be exposed through View Settings)and serves as the default for the definition. In addition to this initial view, you can create variations by adding other pages or blocks to the definition.

Resources

Screencasts

  • Taming the Beast from nodeone.se
    This extensive video series by Johan Falk covers nearly every key feature of the module.

Books

  • Drupal Building Blocks - Addison Wesley Publishing, by Earl and Lynette Miles
    This book covers using the CCK Content Construction Tools, Views, and Panels to and display sophisticated content using these modules in concert.
1822 questions
0
votes
2 answers

Show content only in last 30 days in Drupal 7

I want to show content in view last 30 days only. I managed to create the view and set the filter as "Content: Post date" but got struck in getting correct Value type. I tried the following filter in views "Content: Type (= Document) Content: Post…
Nuwan Fernando
  • 133
  • 1
  • 1
  • 6
0
votes
1 answer

Editing the Autocomplete term widget(tagging)

Screenshot 1: I want to make the links under "Tags" to customize its HTML not just tag. Mobile Screenshot 2: The complete markup of "Tags" starting from with a class of "field-name-field-tags" From the screenshots above, I want to customize…
RJ Ramirez
  • 269
  • 1
  • 4
  • 16
0
votes
1 answer

Drupal Commerce Product image is not shown in View Mode Node:Product List

I'm starting with Commerce Kickstart 2 together with demo store. I added a product and upload one image, this product has one of the demo store variation types (Bags & Cases) and the product display type associated. It seems simple since I didn't…
Caco
  • 1,601
  • 1
  • 26
  • 53
0
votes
2 answers

Drupal 7 - Hide node from views_embed_view

I am using views 3 and drupal 7. I have a view setup where it will return all related articles based on the keywords which works perfectly. The problem is that I don't want the article that I'm on to show up in the results. Is there a way to hide…
user1470118
  • 412
  • 2
  • 9
  • 24
0
votes
1 answer

How to configure node on Drupal 7

There is a pattern node is inserted into the slider (in an item):
0
votes
1 answer

How can I add a link with a UID from a User Reference from a table in Drupal Views

I have the following in Drupal 6: A Master CCK type which contains a User reference field and other fields. There will only be one record per user here. A View of this CCK, shown as a table, with one of the fields being the user ref from the CCK…
pduncan
  • 1,330
  • 2
  • 15
  • 26
0
votes
1 answer

Drupal 7 how to add views

m create one vocabularity locations(like delhi,bangalore,kerala) and im creates two content types one for user content(fields name,locations,map) type another for admin content(fields like locatoins,no of atms) type , these two contain one specific…
0
votes
1 answer

Customising the views content template

This is all fairly new to me so I hope i've worded the question correctly. So I have created a view which outputs a list of news posts, which you can then click on a news post and view the contents of that post. However I've modified the styling of…
JDavies
  • 2,730
  • 7
  • 34
  • 54
0
votes
1 answer

Wanting to display a float-span grid

With Drupal views output I am wanting to display a tiled grid of query results using float-span as described here Please see comments in sassmeister css source for better explanation of what I am trying to achieve. Play with this gist on…
MrPaulDriver
  • 243
  • 1
  • 13
0
votes
1 answer

How to Set View Filter Operator to "Less Than Or Equal To" <= in Views Filter Drupal

I want to Set View Filter Operator to "Less Than Or Equal To" <= in Views Filter of Drupal 7. MACHINE NAME field_guests FIELD TYPE List (integer) WIDGET Select list
Jurgen Kruja
  • 57
  • 1
  • 11
0
votes
1 answer

DRUPAL, Views: exposed filter.. how can I unselect all tags?

I'm using Drupal, Views, tag exposed filter and I would like to allow my customer to select the default tags from back-end. However when he selects some tags is not possible anymore to unselect all of them. See initial picture:…
aneuryzm
  • 63,052
  • 100
  • 273
  • 488
0
votes
2 answers

How to stop multiple records returned on reverse node reference Drupal 7

I am using the 'references' module and the 'views' module (D7). I have two custom content types - 'Universities' and 'Courses'. The Universities content type has a custom field (field_courses) which references university courses' nodes and can have…
0
votes
1 answer

Rewrite in views or Template any view, What will be the best practice in drupal

I am new to drupal. I have already tried rewriting at views any field and templating views display. But i am not sure what is the best practice. Now I am concerned about performance issues. Can anyone please suggest me what will be the best…
rafat
  • 819
  • 2
  • 10
  • 25
0
votes
1 answer

Save views searches and email additional content

I have a view with a lot of exposed filters that I would like to add the ability for a user to save their searches and then be emailed when there are updates. The module Views Save does the first half but I have no idea how I can email updates, can…
0
votes
1 answer

Date And Day of week, in url (Contextual filter in views)

I'm looking for a way to only show contents related to a specific date And specific day in the week. for example: mysite.com/2014/03/02 mysite.com/yesterday Is there a way to achieve this ? Maybe with views or hooks or something custom ?
amirhossein693
  • 442
  • 4
  • 9