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
1 answer

How do i use Drupal views to list all grand siblings of a node by taxonomy term

I am trying to figure out how to display all grand-siblings of the current node as defined by a common navigation taxonomy in a block. I can display all siblings of a node and all nodes using the taxonomy, but not all and only those nodes sharing…
0
votes
1 answer

Getting taxanomy value from URL

I'm setting up a search page by views exposed filter. And one of the field are filter by taxonomy term. For example, when I search with the taxonomy term filter field, the URL is like below. domain.com/search?subjects=69 Now I wish to get the value…
Kooki3
  • 599
  • 4
  • 12
0
votes
2 answers

Dispaly taxonomy terms in a content page in drupal 7

I am a newbie in drupal. I'm working on project in drupal 7. I wanted a page in which i want to show the content and taxonomy terms both one after the other. First what i did is, created a page and added the content. then, i have created a new…
user3030829
  • 65
  • 1
  • 3
  • 7
0
votes
1 answer

drupal - Change the view in the module

I want to change the view of the module depending on the Url. All in php. I created two views putting this data: function config_services_block_info() { $blocks['config_services'] = array( // The name that will appear in the block list. …
0
votes
1 answer

Create a "Products Listing" page that embeds a context-aware View of specific type of products

I have the following page structure: Product listing for type 1 |-> Product 1.1 |-> Product 1.2 ... Product listing for type 2 |-> Product 2.1 |-> Product 2.2 ... so I have created a content-type "Generic_Product_Listing" which has a field_type and…
Dan Albey
  • 559
  • 1
  • 8
  • 14
0
votes
1 answer

How can use the currently displayed node to filter a block-level view on that node's page?

I have parent/child relationship set up via Node Reference. A Child record can have a Parent record selected from a Node Reference field (this is optional -- I can have Parent-less Children as well). I've created a Views block to appear on the…
Deane
  • 8,269
  • 12
  • 58
  • 108
0
votes
1 answer

Problems with Views Slideshow: Cycle

I want to create a slideshow view. I installed and set up the next modules: Views 7.x-3.7 Views Slideshow 7.x-3.1 I Installed the module Views Slideshow: Cycle 7.x-3.1 And i downloaded the jquery.cycle.all.min.js and jquery.cycle.all.js, and put…
0
votes
2 answers

Drupal 7 Views, exposed date select list in descending order

Using Drupal 7 Views with exposed filter on date, the select list is working fine. Problem is that the list is always in ascending order, for example 2000:2014, but we want it the other way round, like 2014:2000 so that the recent years are closer…
Rising
  • 23
  • 8
0
votes
2 answers

Drupal Twitter Hashtag Search

I have a Drupal site with a content type containing a hashtag field. What'd I'd like to do is create a view that displays a list of recent Twitter messages related to that hasthag. This would be a global hashtag search, not just messages related to…
christok
  • 1,087
  • 2
  • 12
  • 29
0
votes
2 answers

How to add us city and state filter in drupal 7 in listing page

I have to display city according to state, and according to city have to display records. How can I do this? I tried by view but was unsuccessful
0
votes
1 answer

How to make collection of the galleries on same page in drupal 7?

I need to have page that is collection of the galleries. Every gallery has to be represent by one image. When user click on that image whole gallery that image represents should open. And the same thing for every image. Something like on this…
natttan
  • 119
  • 1
  • 3
  • 11
0
votes
1 answer

Better control of views output markup?

I am developing a website with drupal 6, and using a 960 grid system based theme. I want to create a dynamic thumbnail gallery with Views, and using this jquery…
agente_secreto
  • 7,959
  • 16
  • 57
  • 83
0
votes
1 answer

drupal 7 view filter criteria value input

I have a content type called Event, which has a date field. I created a new view for the content type and added filtering by date as filter criteria. If I enter inside filter configuration I can choose the operator and enter the value inside the…
0
votes
1 answer

Drupal 7 Field Collection View Not Grouping Correctly

The grouping of field collections doesn't appear to be working correctly. Fields: Item Sub-item Sub-sub-item Relationships: Sub-item with Sub-sub-item What's displaying: With Delta 2: 1. Item 1 1.1 1.2 1.2.1 1.2.2 With Delta All 1. Item 1…
sigkg
  • 29
  • 5
0
votes
1 answer

Create a drupal 6 views slideshow from a single content type that has both, image and video fields

I need a little direction. I've created a content type that has both, images and videos attached to a node. I need to create a single frame slideshow that riffles through the mixed media. Currently, I'm using the Embedded Media Field as well as…
knice
  • 391
  • 2
  • 8