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

drupal search on the top taxnomy term

i have designed a view with 2 exposed filter name(textbox) and place(taxnomy term with xxxxx -yy -yy -yy these terms it works fine when i search for -yy terms, but the problem when i select on xxxxx it should perform search on all the child terms…
0
votes
1 answer

drupal how to limit the display results of the calendar view

i have a calendar view its working pretty fine,,, but i need to restrict the results to one per date, if i have five events, my view looks odd so thought of adding a more link and displaying only one result per date..... is there any way to this,,…
rockyit86
  • 1
  • 2
0
votes
1 answer

drupal view query alter : Subselects/query don't work with out brackets

I was trying to alter a view query with a subselect that looks like: $subquery1 = (db_select('users_roles', 'r') ->where('r.uid = users_node__users_roles.uid and r.rid=10')); $subquery1->addExpression('COUNT(r.rid)',…
0
votes
2 answers

GMAP & Location - Coordinates show but cannot show node information

I set up a view with a type of gmap. If I change it to grid, all of the field values output fine. When I switch to gmap, the coordinates show up on the map but I can't get any info on the coordinates/markers. I am very very stuck. I have gone at…
Scott
  • 877
  • 4
  • 12
  • 24
0
votes
1 answer

How to create a content type in drupal 7 to display the latest post

I have created a content type for Events with fields Event Date and Event description, these events are linked to a seperate page. Now i want the latest event to appear on the top position of the page and older ones below. How to achieve this? …
user3165429
  • 63
  • 1
  • 9
0
votes
1 answer

How to create a content type in drupal 7 to display the latest post on top

How to create a content type in drupal 7 to display the latest post on top and the older one below in a seperate page when linked.
0
votes
1 answer

Add a formula based column using Views UI - Drupal

I have made a view that has one column for the total of posts from a user and another column for the number of views of those posts. Is there any way to create a third column where I can show the ratio of views per posts using Views UI in Drupal of…
Kookoriko
  • 322
  • 1
  • 3
  • 11
0
votes
1 answer

Field Collection alternative ? Need Sub fields searchable through Search API (Drupal 7)

I am hoping to find an alternative to Field Collection module. The problem is that I want to search (I am using Search API + Views) the sub fields in the Field Collection. As an example, If I have a Field Collection "Field", as Research Paper, with…
Steve
  • 2,546
  • 8
  • 49
  • 94
0
votes
1 answer

drupal how to refresh the page when the content is created in the popups

i have designed a panel where i have to used to popup links and automodal class for creation of content.... view objects now after saving the content , and…
0
votes
2 answers

Custom way to display Views in Drupal

Views in Drupal are displayed as lists or simple tables. Is there a way to customize this? I'd like my views to be rendered as JSON inside the page, so I can display it with some fancy JavaScript visualization.
Dan Albey
  • 559
  • 1
  • 8
  • 14
0
votes
1 answer

Categorised Multiple File uploads within a page in Drupal 7

I have a situation where I have to upload multiple files within categories. This can be explained by the following picture. As you can see I need to upload multiple files, but also need to categorize them. Each category has different files and even…
Steve
  • 2,546
  • 8
  • 49
  • 94
0
votes
1 answer

My products categories have (meta)data - Use taxonomies or implement them as content items?

I'd like to use the combo Drupal/CCK/Views to create a products catalog and I'm confused as to if I need to use taxonomies or not. My products could have a taxonomy, but each term in the taxonomy has information by itself. For example a product…
Dan Albey
  • 559
  • 1
  • 8
  • 14
0
votes
1 answer

Drupal: Update page title based on selection in exposed filter

I am trying to develop a basic job portal using Drupal 7. As you can see in the image below, I have an exposed filter as a block in the left sidebar, where visitors can filter by industries and job type. What I'd like to do is modify that "Job &…
Lukas Pleva
  • 381
  • 2
  • 5
  • 17
0
votes
1 answer

Passing parameters throw url

Hello everyone. Here is my problem. I have a photo gallery content type in which i store several photos. One of my fields is a list field(named 'period') with 3 options (2000-2004, 2004-2008, 2008-2012), refers to the period the photos was taken. …
Manos Serifios
  • 577
  • 2
  • 7
  • 22
0
votes
1 answer

I am using Views Calc module but giving error

I am using Views Calc Module in drupal 7. I want to calculate and show sum of price of products. The Views Calc module giving error- SQLSTATE[42000]: Syntax error or access violation: 1140 Mixing of GROUP columns (MIN(),MAX(),COUNT(),...) with no…
tafsir
  • 311
  • 1
  • 3
  • 10
1 2 3
99
100