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

Formatting views template output

I am using this code in a views template to print user name in a field. The output is fine except it doesn't shows as a link, as its supposed to. users_name; ?> How can i modify the code to show the output as a link? btw this…
0
votes
1 answer

drupal views display needs multiple sort order for exposed filter

I have a 4 quicktabbed views blocks on a page and rightnow. All blocks show lists that can be sorted by "Title" with an exposed filter and a sort order dropdown button for options "A-Z" and "Z-A". So the user can view the list either way. I need to…
james
  • 707
  • 2
  • 6
  • 13
0
votes
2 answers

Views doesn't show checkbox fields where answer > 1

I am using Drupal with Views and the extended profiles module activated. To enable users to check multiple areas of interest I also added a module called Profile Checkboxes. It adds the ability to use a free-form list but turns it into either check…
JeroenEijkhof
  • 2,232
  • 2
  • 25
  • 39
0
votes
0 answers

drupal 7 use colorbox in views field

For a website I'm building I'm trying to have some image fields (which are in a view) use colorbox. I've tried this tutorial: http://www.ostraining.com/blog/drupal/colorbox-drupal/ however to no avail. This is the page I'm trying to get it working…
Yorian
  • 2,002
  • 5
  • 34
  • 60
0
votes
1 answer

Drupal views output theming

I have a views page which tracks posts created by users. Its having a field(comment_count) to show no of comments in a node. the field is working fine except its showing blank spaces in fields with no comments. I am using the template file…
0
votes
1 answer

Loading views_accordion through an ajax request

I am currently loading my view through an ajax request in my custom module: $.getJSON('/reports/summarized-progress/get_output_activities/'+nid, null,activities); The drupal page for the above request returns the…
perpetual_dream
  • 1,046
  • 5
  • 18
  • 51
0
votes
2 answers

replacing content type field value in a view based on taxonomy term type in drupal 7

I have created a view which is displaying content type fields based on taxonomy term which is "Paid" and "Free". I want to replace the text of content type field if the taxonomy term is "Paid" and I want to show different value for the content type…
0
votes
1 answer

Drupal Leaflet dynamic icons/multiple layers

I have a situation where I need to display content with different terms on a Leaflet map. These terms also are associated with images. At this point, I would like to ask you whether the below can be done. 1) Multiple layers: To show different…
Tolga Ozses
  • 348
  • 4
  • 26
0
votes
4 answers

DRUPAL, Views module: can I dynamically change the number of columns of my grid?

I'm using drupal for a website and I've created a grid with the View module to display my nodes. Can I dynamically change the number of columns of my grid with javascript according to the browser width ? At the moment I can only specify it in the…
aneuryzm
  • 63,052
  • 100
  • 273
  • 488
0
votes
1 answer

drupal 7 Displaying data from different content type in single row in views using relationships

I have a Taxonomies like group , category hobbies, CV and i have a 3 content types. 1st content type is Company which has a field project code , then it has field called CV which is of type term reference to Taxonomies CV. There is a field called…
Naveen Kumar
  • 979
  • 1
  • 13
  • 24
0
votes
1 answer

Backbone.js collector data missing

I have this simple JSON feed which I am attempting to read in a BackBone.JS app. My challenge is the network traffic comes up completely blank as illustrated below: Using the following code: //Collections var Topics =…
sisko
  • 9,604
  • 20
  • 67
  • 139
0
votes
1 answer

display civicrm image in drupal views

How to display an image stored in civicrm database in Drupal views? I have a webform through which user registers and details are stored in civicrm db. I have created a view which displays the user data but when it comes to images it only displays…
0
votes
3 answers

Drupal: Content in blocks from node_reference fields?

After only a few weeks of working with Drupal I've come up with a recurring problem, which I don't really have an optimal solution to, so I'm hoping that someone here might be able to give some best practice pointers. What I have is a region inside…
Marco
  • 2,329
  • 1
  • 21
  • 25
0
votes
2 answers

How can I create a comma separated list for multiple node references in Drupal 6?

I have an Author content_type that I'm switching out for username in articles. The problem is that a story can have multiple authors, and the following code in template.php will only generate the first author. How can I get this to output to be…
Steve Perks
  • 5,490
  • 3
  • 28
  • 41
0
votes
1 answer

Nested view required

I am new in drupal. I want to create a view in drupal-6 for my three content types which are integrated with each other by node reference(CCK). I have contents types 1) Topic 2) Room 3) Time slot I want the schedule to be grouped by topic (a field…
Kashif
  • 1
1 2 3
99
100