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

learn more… | top users | synonyms (2)

-3
votes
0answers
16 views

Display SQL Table Data In Node

I need to retrieve data from a custom remote database (the database is already registered in settings.php and I have successful built entire dynamic pages that retrieve data with modules (routing etc.)...
0
votes
0answers
9 views

Updating for anonymous users

I have a view with: Content: Comment count Content: New comments When a comment is updated the counts are updated appropriately by node.js for AUTHENTICATED users. However, for ANONYMOUS users, ...
0
votes
1answer
26 views

Append filter info to URL when using AJAX in 'View' module

I am using the Views module and have created a view for a content type. I have added an exposed filter so that the user can filter the list of content based on a custom taxonomy. I want to use AJAX ...
1
vote
1answer
41 views

How do I filter the current year?

Initially, I have installed the Token module and created a Views block containing years. I want to filter out the current year from the block (it should not show the current year). In filter ...
0
votes
1answer
24 views

How to code multiple values field in Views PHP?

I need help setting up ViewsPHP to evaluate 3 pieces of data? (I barely know any PHP) ViewFields I have a View with three embedded Viewfields: Node count $row->view [views_field_view_view] Time ...
3
votes
1answer
69 views

How to increment variable in twig file?

I'm using a view grid template and a views-view-fields--view-machine-name.html.twig template in order to render some pictures in grid format. I want to assign dynamic CSS classes to every picture ...
0
votes
0answers
13 views

AJAX error when using a custom ViewsFilter?

I have created a custom field that is a collection of a couple things, one being a taxonomy entity reference. Now I want to be able to filter a view based on this taxonomy reference. With the code ...
0
votes
0answers
15 views

Creating Events Listing including “No Events on this Date” for empty days

I have an event type called "Crime Log" with a "date reported" field on it. I've created a view that shows all of the reports, grouped by date reported, but I want to use the no results behavior to ...
0
votes
1answer
11 views

views entity reference to point email instead of uid in contextual filter?

I'm using Drupal 7 and Views. I've been trying to sort out, entity reference to enable a contextual filter to sort by email, instead of UID as currently I am doing. Is that possible?
1
vote
2answers
31 views

How to filter 1 view with two fields based on 1 contextual filter?

I having a view which result in a table with three fields like: field1, field2,field3 row1 with values 100, 110, 503 row2 with values 200, 520, 110 row3 with values 300, ...
0
votes
0answers
20 views

Views query alter (hook_views_query_alter) not working properly [on hold]

I am using the hook hook_views_query_alter in one of my custom modules with multiple times calling of same view in same page. Following are my code snippet. Please let me know where I did mistake. ...
1
vote
1answer
24 views

How to get each field value in views-views-unformatted--view-machine-name.html.twig?

I have an twig file: views-view-unformatted--view-machine-name.html.twig {# /** * @file * Default theme implementation to display a view of unformatted rows. * * Available variables: * - title: ...
1
vote
1answer
29 views

How do I show a percentage value in a views_field?

How do I show the percentage value in a views_field? col(1) (group by) field_a col(2) (count)field_a *100/number of results " -->@total" I'm still not able to use @total in a computed_field or a ...
1
vote
1answer
23 views

Views pagination, jquery and ajax error

I have emerged me a problem with a page view and maybe someone can help me solve. Following this tutorial: http://codekarate.com/daily-dose-of-drupal/multiple-views-part-3 I created a view showing a ...
1
vote
1answer
8 views

New content pane (in view) not showing up for adding to panel

Added new content pane as part of my view. Even after saving, and clearing the cache, this pane is not showing up on the available panes list when adding content to Geary type panel/column in Drupal 7....
0
votes
0answers
19 views

How do I group nodes by term? [on hold]

In my site I need a page which is grouping by term. I create a view and group by term which, but I need an output like the following. <div id="term_id"> <div class="group-header"&...
1
vote
2answers
58 views

How to add “Content type B” from within “Content type A” and then display both together

I have the following scenario: Content type A Content type B Content type A is added by the admin role. Content type B is added by the students role. Once Content type A is created, then on ...
0
votes
1answer
13 views

Can there be content sent the a vanilla Drupal 8 sites' views that isn't a node?

Is it possible to add content into views that is not searchable from google? I am trying to find out if the content sent to views has to be of a type node. (I think there are other modules for ...
1
vote
1answer
21 views

Discard views filter on field from referenced taxonomy term when relationship isn't present

I want to show two content types (A and B) in one view. 'A' has a relationship with a taxonomy term 'foo', 'B' doesn't have this relationship. So the relationship isn't required. However when I use a ...
0
votes
1answer
29 views

Help with hook_views_pre_build() [duplicate]

I have set up a View to show a list of stories, and then set up an attachment to my View that puts the first 4 stories at the top of the View styled differently. I need those 4 to only show on the ...
0
votes
0answers
12 views

Leaflet views how add marker by click?

I'm using the module Leaflet and IP Geolocation Views & Maps to display the marker, I need to give the ability to add markers with the mouse click. I'm trying to add a mark on the map Leaflet, ...
0
votes
0answers
9 views

How to show referenced node for embeded entityforms in views?

I have embeded a Entity Form (job application) on a 'Job' node type, when a user completes the form I would like to show the entity form submissions in Views highlighting which 'Job' node type they ...
2
votes
1answer
41 views

Views contexual filter based on nid (not from URL)

I am using Viewfield module to display taxonomy terms of a node is referencing to. I am not using the default taxonomy field available in views because I want more freedom on manipulating the rendered ...
3
votes
1answer
93 views

Having issue with multiple calls of same view

I am using the function views_get_view and it's working fine if am using this once in a function. But when I am calling this function multiple times with different arguments in the same function the ...
0
votes
0answers
22 views

Filter criteria Book: Depth is missing?

I have created Pages using the core Book module in Drupal 8. I tried to create the view for that content type, and there, I need the filter criteria Book:Depth in view, so I can show the pages of ...
1
vote
1answer
33 views

Where does views's template files get saved?

I have created a view for content type = "Article" and have chosen "FORMAT" = GRID FORMAT Format:Grid | Settings Show:Fields | Settings My question is where does this view related template get ...
0
votes
2answers
7 views

Drupal 8 Views Translated relationships

I have a View with relationships (to referenced entities) that have translations. This causes duplicate rows in the results for each of the referenced entities translations. You probably know of this ...
5
votes
3answers
114 views

Is there a more performant alternative than overriding template files?

I've got to get rid of a lot of unnecessary markup in a view. In general, I accomplish that by overriding the template files in my theme, but this time the view is really huge and performance is going ...
1
vote
0answers
28 views

How to output unlimited value Field Collection with dates into a Views table format with no duplicates?

I have a Content Type called "Safety Training". It has various fields within it, including a Field Collection named "Dates & Locations", set to unlimited values so they can add infinite date/...
1
vote
1answer
53 views

Excluding Book children from a Custom view

We have a News site that displays all news articles on the homepage and subpages that display only those items tagged with a certain Taxonomy term. So for example we have a World News term so going ...
2
votes
1answer
30 views

How to add link title in combine field filter

my view having combine field filter.it is working based on link field. the link field title is "test" and the url is "http://example.com".when i search using "test" it is not showing any result.if i ...
0
votes
1answer
15 views

How do i run the equivalent of single configuration import from a hook?

I have a hook_update_N that is changing a field. It is deleting the field and recreating it with the same name but a different field, formatter, and widget. The problem I'm having is that there is ...
0
votes
0answers
14 views

How to pass views exposed filter values to URL as parameters? [duplicate]

I have a view to display nodes based on taxonomy term, here I have added a views exposed filter based on the node's status field. Is there a way to pass the views exposed filters to URL as when the ...
0
votes
1answer
27 views

How to Group the same content into one in View?

I am using Date Module to display the view summary for a particular year and also count the contents are created in the same year. I have created the several contents in the year of 2016 , it may ...
3
votes
2answers
100 views

Show the first 4 items in a different format

I have a current view set up that displays a feed of stories and is sorted in descending order. I now need to have the first 4 stories display as a different style then the remaining ones. I have ...
0
votes
1answer
29 views

How do I overwrite the view output for each vocabulary?

This is the Drupal 8 version of the following question: How do I override a taxonomy/term/% list with a view? In short: You can edit the default, global taxonomy/term/% view, but you can not set ...
2
votes
1answer
31 views

How do I change the default value for a filter?

I want to customize the default value for a filter in view through some custom code. I have tried the below answer and its not working for me. if ($form['#id'] == 'MY_EXPOSED_FORM_ID') { // ...
1
vote
1answer
30 views

How can we display permissions to users?

Is there any way we can display user permissions (e.g. delete all nodes) to a user role inside a view? Permissions would be change-able with check-boxes.
1
vote
1answer
20 views

Pass view contextual filter arguments programmatically

I want to pass contextual filter arguments programmatically to a view. I know it can be done through views_get_view and views_embed_view, but I want to pass it to a view's page display. Also I want to ...
-3
votes
1answer
25 views

How to show one node from particular content type into all other pages?

I have content type and have few fields and I want to display each node from that content type into basic page. In this i want to choose which node i want to display on which page. Like i want to ...
0
votes
0answers
12 views

What is difference between hook_panels_pane_content_alter and hook_panels_pane_prerender?

Ive got a panel variant which includes number of view pane blocks. I wanted to change some output of one of the view panes, I tried using hook_panels_pane_prerender, it did not change any output (...
1
vote
1answer
40 views

Can't update header area in view

When I'm updating the heasder area in my view and hit Apply (all displays), I get a page full of cryptic code like [{"command":"settings","settings":{"basePath":"\/","pathPrefix":"","ajaxPageState":{"...
2
votes
2answers
42 views

How to add an additional wrapper div within a views row

I have a views page with a format of ‘unformatted list’. For a views row I’d like to add an additional div to act as an additional wrapper. The resulting mark-up would then look like <div class=“...
0
votes
0answers
17 views

Group view with year

I want to create a Drupal view (using the Views module) that shows a list of years and each year is linked to a node. For example: Press Releases: 2015 2014 2013 2012
0
votes
1answer
16 views

How to change the path when cloning the Taxonomy term view?

I am trying to clone the default Taxonomy Term view to a new view. I have a Block with the list of contents when I was clicking one of the content inside the Block, it goes to this path: taxonomy/...
3
votes
1answer
32 views

How to load all remaining content of a view after clicking a “load more” link?

I have a view block that list contents. What I want to do is to show only 5 items in this view and a load more link at the bottom of the view and if this link clicked, then show all remaining content ...
1
vote
1answer
49 views

Views - filter Articles by tag equal to node beeing viewed title

I'm trying to create view which will show all Articles which tag is equal to title of currently being viewed node (which content type is not Article). Adding filter Has taxonomy term = [title] does ...
1
vote
0answers
15 views

Check empty field value in view result counter

I am using view result counter to combine and display multiple fields. I want to check the empty condition for field. How to check this in rewrite result option in view result counter field. FYI,I am ...
3
votes
1answer
41 views

Taxonomy URL Inside View

I've created a View that displays all of my 'Product Category' taxonomies. I'd also like to get the path alias for each taxonomy listed. Usually to do this, I'll add a hidden 'Path' field, so I have ...
0
votes
0answers
22 views

PHP code to display the title of the current page [closed]

what PHP code should be entered to display the title from URL. In the context filter views?