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

learn more… | top users | synonyms (2)

-2
votes
0answers
11 views

Warning: Creating default object from empty value in node_build_content()

Attached below is the error message whenever I go to store-products-view. I'm using Ubercart and Drupal 7. The error says: Warning: Creating default object from empty value in node_build_content() ...
0
votes
1answer
22 views

How can I filter users within a user-configurable range in Views?

For example, consider a dating website. Each user has an Age stored in their profile. They also have a Max age and Min age, which are the maximum and minimum ages of people they hope to receive ...
0
votes
1answer
11 views

How to embed a view in hook_page_build()

I'm trying to render a view into a region in hook_page_build(). I'm using views_embed_view(), but I'm getting the errors: Warning: Invalid argument supplied for foreach() in element_children() ...
-1
votes
1answer
16 views

Problem with custom scrollbar when it is called more than once on the same page

I making my custom module that works through Views and I have problem with one part of it. In one part, when I have longer text, custom scrollbar appears, and it works without any problems, but when I ...
0
votes
1answer
20 views

Exclude a block from the views result

I've created a views page named "Search" with a path of "product-page". Then I created a views block named "Sponsored Ads". With the "Search" page, I exposed some fields for the filtering, then ...
2
votes
1answer
29 views

Make a relationship to last element of a Field Collection

I have a View with a relationship to Field Collection (with unlimited cardinality). I need this relationship to connect only to the last element (having the largest delta). How can I do this?
1
vote
2answers
31 views

Views and Taxonomy Filtering

I have a question regarding filtering in Views. My setup: • I have a content-type, for example: Cars • I have a few different taxonomy term fields attached to that node, something like: Car brand, ...
0
votes
0answers
8 views

Calendar Views issue

I'm using Calendar module and I have trouble with calendars implemented by this module. I want to create a Drupal 7 Calendar View which uses two fields (date type) from the same Content Type. The ...
1
vote
0answers
16 views

Arrange formatted fields in Views row using a template

I want to render the rows of my “Recent content” Views page using a template in order to subdivide the rows into multiple divs, freely move around the rendered fields within these divs, and apply ...
0
votes
0answers
25 views

Retrieving entity data in views with dynamic (per-row) relationship

I have custom entity 'entitystatus' that holds 'entity_id' reference and 'entity_type' field. Now I need to build a view that will display Entity statuses attached to different entity types (i.e. ...
0
votes
1answer
30 views

Filter content by own content or admin

So I have an entity reference field on a node, the widget is a select-box. I want so that an user can choose one of their own authored nodes as a reference OR if an admin is logged in, they can ...
0
votes
0answers
14 views

Moving from Drupal 6 to 7 - trailing slashes and content views

I have a site which I need to move from Drupal 6 to Drupal 7. I heard that Drupal 7 doesn't support trailing slashes (URLs like http://example.com/folder/) I also heard that to move the content I'll ...
1
vote
1answer
17 views

Sort nodes based on referenced node

Im pretty new with advanced views and references module (Drupal 7). Im seeking for some help. I would like to sort nodes based on node post date of the nodes that references it. So I have node type ...
0
votes
0answers
11 views

Get news of the event belongs to a group of a user

I have 3 content types: Group, Event and News, an event belongs to a group, and an event have news, so that it is like this: Group <-- Even <-- News. I need to get the news of the events that ...
0
votes
1answer
14 views

How can I make Search Terms in a View to look fo into the edited Summary?

I have a View of a type of content, and it has a Search Terms contextual filter. It searches perfectly (after indexing the content and running cron), but when I have a node which has the summary ...
1
vote
2answers
95 views

How to add a link to an image in a view

I have a view that is showing a single image, and I need the image to link to a specific URL, but when I try using Rewrite Results on the field it will still show the image but doesn't add the link. ...
0
votes
0answers
13 views

Issue setting the position of a popup

I am using Views Popup module to display the popup in my views. I have an image field when clicked displays the popup. I added jquery script in my views field template file to set the position of the ...
0
votes
0answers
14 views

I want to load node view based on node url alias into drupal view contexttual filter. Is it possible?

I want to load node view based on node url alias into drupal view contexttual filter. Is it possible ?
0
votes
1answer
34 views

How to integrate Views with apache solr search?

In my site I am implementing zip code based search, for that I created one view of user profile and add one expose filter to it which is exposing result on postal zip code entered by user. Now I am ...
0
votes
1answer
10 views

Drupal Calendar highlight all days in block with views

I have calendar showing dates (start and end dates). When I create a calendar from the views template it adds several displays. The month display shows shows all days from the start to the end day ...
0
votes
1answer
19 views

Create a block with contextual filter that show related nodes based on field value, not with taxonomy

I'm no newbie to Views or Argument/Contextual Filters, but I'm having trouble getting my head around a (simple) view. I've created a Content-type "Event". Which contains an 'Addressfield', which I ...
0
votes
1answer
13 views

How to add additional query parameters to a views page url?

I have a view with two displays as page. I need the URL of the pages as gallery?display=grid and gallery?display=slideshow and filter the views based on the additional parameter 'grid' or 'slideshow'. ...
0
votes
1answer
27 views

Views: how to make an OR condition between filters and contextual filters

I have been able to separate Views filters into groups and apply an OR condition, following this article: http://www.webomelette.com/drupal-views-filters-and-or-logic I also understand how to use the ...
0
votes
0answers
36 views

How to create single page website in drupal? [on hold]

How to create single page website in drupal? With clean UI/UX With Big background Image Smooth scrolling Sharing an example: Sample site
0
votes
1answer
18 views

How do I create a summary that is grouped by years first and then months in Views using contextual filters?

Instead of the default formatted result of «Created year + month»: - Diciembre 2014 (12) - Noviembre 2014 (20) - Octubre 2014 (23) - ... - Diciembre 2013 (13) - Noviembre 2013 (34) I ...
0
votes
0answers
22 views

Making a list of content fields

I am making my first Drupal site and I have a problem. Little background: On the site users can register for events. These events are listed by different organisations. A user can choose which team ...
2
votes
0answers
24 views

Some fields are not sorting properly in view

I'm trying to create a directory list in view. But some of the fields are not properly sorting. See the below image for my view configuration. And the output of the view. Update: Style setting ...
0
votes
1answer
19 views

Issue using Exposed filters along with contextual filters in views

I have a view page listing my stories/articles. I have a contextual filter based on the field Country which is a taxonomy term reference field. I have defined the path of the page as article-search/% ...
0
votes
2answers
29 views

Displaying articles created by user in profile page using views

I want to display the articles created by user in user profile page. It should also display to anonymous user also. For example : twitter.com/google displays all tweets by google. Like that I want ...
0
votes
1answer
24 views

How to replace metatag description using views argument?

I'm having trouble while trying to use views arguments for replacing metatags description. In the view title you can easily add the view argument for example "Blog posts in category %1" so the "%1" ...
0
votes
2answers
29 views

Problem in views UI part in admin panel

I have implemented the views in my project, in this views are looking fine. But after I install jQuery Update module views are changed. Now views are looking like following : Error it showing : ...
0
votes
0answers
12 views

Why do I not see a join in the view query?

I added a field to the user content type called metro_id. I am trying to display that field along with the user's name in a view. I expected to see a join in my view sql. Instead I see that ...
0
votes
0answers
5 views

Can't set view title in hook_views_views_pre_view

I am trying to change the title of the view based on some conditions view object. I figured that I could simply run drupal_set_title('New title'); from inside the hook_views_views_pre_view, but ...
0
votes
0answers
12 views

Views OG filter unpublished content waiting for current user approval

I'm using views module and Organic groups and I need a contextual filter based on user role = admin or content moderator to filter the unpublished content in all the groups he manages = all the groups ...
0
votes
0answers
49 views

How do I get ajax callbacks from working example to execute in Views handlers?

I can't seem to get a callback function to execute in Drupal 7 Views 3 argument handler. All I want to do is have one displayed form element change when the user changes another. Simple. This ...
0
votes
1answer
17 views

Views sorting a custom field

I've added a custom field to my view using hook_views_data: /** * Implements hook_views_data(). */ function homepage_views_data() { $data['homepage']['table']['group'] = t('Recency field'); ...
3
votes
0answers
35 views

How to force caching to work for View with filter by date offset?

Faced with a strange situation: if a View uses filter "Post date" (or similar) with an offset (eg, "> = -1 month"), this View won't cache. Example: I create a simple View with Block display. Field: ...
-3
votes
1answer
24 views

How to check author role in Views PHP

I need to check author role using views php. I've already added a relationship and added a field(excluded from view) User: role. How can I check if author role is equal to 'administrator'?
0
votes
0answers
27 views

How to use replacment patterns in “no results behaviour”

I would like to define "no results behaviour" for an image field in a view. For this, I need to obtain the dimensions of the image that would be placed there if it existed. Below the "no results ...
0
votes
0answers
27 views

Query with multiple joins and conditions

I am trying to achieve this code, which works correctly as a SQL consult on Phpmyadmin, in a PHP field of a View (Drupal 7). SELECT COUNT(*) FROM `field_data_field_qrespuesta_preg1` `r` LEFT JOIN ...
3
votes
2answers
139 views

Change a node page with views module

If you have for example http://www.example.com/node/5 and you go to that node page you get the page created by Drupal. My node is about an organization and I want on the bottom of that page a list ...
1
vote
1answer
30 views

View display content by value based on user profile field values

I need to create a view that displays saved content with defined field values to users with specific attributes. I.E. content form with a field boolean of regulated: [0] unregulated [1] ...
0
votes
1answer
13 views

Views 3 filter on academic year

Using Drupal 6, Views 3. I am trying to build a view that will include events for the current school year. So this year the view would include everything from September 2014 through June 2015. Once we ...
1
vote
1answer
39 views

Views profile2 views

I hope it's okay to ask a why question here. I've got a profile named Expert Information and a Skills field in that profile. I've got 9 users with the Expert role. Now my problem is: When I make a ...
-3
votes
0answers
27 views

Differentiate table and attachment [duplicate]

i was unable to differentiate between Table and Attachment in view module because they look alike to me now am confuse and did not know the difference . am new to drupal if someone can help.
0
votes
2answers
28 views

How to use view to display a list of nodes?

My site have a restaurant node type and each restaurant node has multiple menu items. Each menu item has food name, price , discount, etc. What I want to do is creating a view that shows a list of ...
-3
votes
2answers
53 views

auto-complete views expose filter

I have created an expose filter to display a list of articles written by respective author. For that purpose I have create a view and done following things: Relationship - Content: Author Filter ...
0
votes
1answer
6 views

Eliminate Views Entity Reference Duplicates. I have some titles the same on purpose

I have a view with an entity reference pulling in what I need from a content type. There are, on purpose, titles that are the same. Is there a way to compare what is output and then only show one of ...
0
votes
0answers
7 views

How to use metatag:image_src?

Image shared on facebook via the Service Links module is not showing up correctly when shared. I'm using Views with custom template to view this specific content. Based on the Views configuration I ...
0
votes
2answers
48 views

Embed view into specific node

I try to embed a view into a specific node. I found tutorials for doing this with Drupal 7 and PHP-Templates: <?php print views_embed_view('view_name'); ?> But I look for a way in Drupal 8 ...