Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [views]

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

3
votes
2answers
831 views

Categorizing and Sorting Webform Submissions

I'm trying to find an effective way to categorize and sort webform submissions. I already have them displaying in views, but would like to take it a bit further. Here's the goal: Anonymous users can ...
0
votes
0answers
2 views

How to display a message to a user, with the selections he/she has made from the contextual filter in drupal 7 views?

I have a view with more than one contextual filters. For example, filter on Age, and Gender. if the filter is on Age, and/or gender I would like to display a message to the user regarding the ...
1
vote
1answer
709 views

How to format the raw date formats when using Google Analytic Reports?

I am using Google Chart Tools, Views, and Google Analytic Reports to create charts for an admin dashboard. However the date format (Time Dimensions: ga:date) outputs the date in the YYYYMMDD format. ...
0
votes
1answer
690 views

Error: Syntax error, unrecognized expression: <div id=“ctools-modal”>

I want to display a form in CTool modal dialog, but failing badly. When I click link to show modal form, ajax request is started: POST http://drupal.dev/my_mod/arg1/ajax/arg3 and returns: Error: ...
-1
votes
0answers
9 views

Views showing old and new values

We've just migrated our site from on premise server to aws 4ec2s behind lb. Now we're having strange issue that when user made changes in to a node, which goes into the database. But when views try to ...
0
votes
1answer
2k views

Making text fields autocomplete in views exposed filters

I want to make a text field auto complete in a views exposed form. I tried using the following code but nothing happens(I don't see that blue icon in the text field): <?php function nk_menu() { ...
0
votes
1answer
798 views

Views Slideshow with jCycle - Making it 100% flexible repsonsive

Currently I have the following in my views: Title Image (size original) I also currently have my image set at width: 100% via my css file. Now, how do I go about configuring the slideshow to take ...
4
votes
2answers
3k views

How to translate taxonomy terms displayed via an exposed filter in views?

I'm using the Views, i18nviews, and Entity Translation modules. All of my terms have already been translated using Entity Translation. In views displays, the translated terms appear in the correct ...
0
votes
1answer
9 views

Sum the value of all nodes fields and display them on the taxonomy page

How to get result like on the picture? I created taxonomy term - Coins with two nodes. A field_coin_price is attached to the nodes. Using the View I can easily display the number of coins (nodes) on ...
4
votes
1answer
886 views

Using a View in a tooltip for an image map hover link

I have a imagemap with various tags, it works well in my Drupal instance, I can click on the various areas to get to my pages. Now I want to hover one area and display a tooltip with information ...
0
votes
1answer
18 views

View using Path

I'm having an issue combining the use of taxonomy terms, URL alias patterns and views. Here's my setup: 1) Taxonomy: A basic taxonomy, lets call it "Blog Tags". In here I have a term like Mountains. ...
0
votes
2answers
15 views

How to display fivestar average infos?

I am building a view with fivestar infos under the voting widget which look like this with the views preview: But it is rendered without the infos in the page: In both cases I'm an admin user ...
-1
votes
0answers
23 views

Can I use a view as a filter criteria for another view? [closed]

I have a view with an exposed filter. This exposed filter is for taxonomy terms on content types. However, the client is asking for some special behavior of the exposed filter dropdown. First, they ...
0
votes
0answers
12 views

preprocess views send arguments to facets

I am trying to filter user ip on the template.theme file on drupal 8 and the intention was to filter on user ip and based on the ip add in the correct arguments into the facets that is created in ...
4
votes
2answers
942 views

Display a grid view without border columns

I'm trying to display a specific number of products in a e-commerce drupal site in the front page. I would like to use a display as in my theme's demo : http://demo.morethanthemes.com/tophit/ I ...
2
votes
2answers
974 views

Theming a views field output using views-view-fields.html.twig

I am trying to customize a views output on a view page to wrap the fields in custom markup. I need to group a set of fields to achieve the desired layout like so: Example: <div class="wrapper"&...
1
vote
3answers
135 views
+50

Add class to form-tag in in views exposed form via template_preprocess_views_exposed_form()

I wonder how I can add a class to the form tag (of the _search_content_ view's) exposed form using template_preprocess_views_exposed_form() (or even better ...
3
votes
1answer
676 views

view access permission

I have a problem with view permission, when I make a view in drupal 7 there is an option "access" when I specify the option eg:"view published content" all users that has the role of published content ...
5
votes
1answer
2k views

jquery date picker in views exposed filter changes the date values

I have a node type "tasks" and created a view so that current logged in user can see his/her assigned tasks. I have used a "time ago" formatter in the field "deadline" which shows the remaining time ...
0
votes
1answer
10 views

Create link to email all views results

I have a view that outputs a list of email addresses. I'd like to find a way to set up a mailto: link that contains all of those as one comma-separated list. Could anyone advise?
1
vote
0answers
9 views

Create a view of nodes that are not referenced in any entity reference field of another content type

How can I create a view of nodes that are not referenced in an entity reference field assigned to another content type? I have a Profiles content type and a Publications content type. The ...
1
vote
2answers
1k views

Output taxonomy term in views unformatted using twig

I'd like to output taxonomy terms as html classes for view-rows in the views unformatted template for Drupal 8. My code: {% if title %} <h3>{{ title }}</h3> {% endif %} ...
0
votes
0answers
13 views

Show the nodes number of a parent taxonomy term?

I have parent taxonomy term (Coins) and a few child terms. Coins Dollar Half dollar 1 cent I show the number of nodes in a current taxonomy term using next method. Create a Taxonomy Term view (...
0
votes
1answer
672 views

How to populate select options after ajax call on other select tag?

I want to change options of select on custom form after ajax call on other select. For example, let's assume that I have select (let's call it vehicles) options of vehicles like car, train, bicycle ...
3
votes
5answers
813 views

how to get content type field name as drop down for filter in view

In Drupal 7.10, I have created new content type with 15 fields and file upload for collecting input from end user(named inputdata). I need to create a search page with content field of "inputdata" (...
3
votes
1answer
953 views

How to embed a Rules Link in a View in order to trigger a Rules link to run?

What is the general process to embed a Rules Link in a View in order to trigger a Rules link to run? I have used the Rules Link module to create a Rules Link embedded in a View (it's a View that ...
5
votes
4answers
2k views

Entity Reference: Filter by an entity reference view not working as expected

I am attempting to get a taxonomy reference field select widget that shows a list of taxonomy terms, including some extra data from their fields. I have attempted to use the "Reference method" = "...
0
votes
2answers
821 views

How to display Taxonomy child terms using views?

I have tried using Taxonomy View Depth, I created a taxonomy vocabulary like this Example: Animal -Cats --Brown --white -Dogs --Brown --White What I did was enable the default taxonomy view, and ...
0
votes
1answer
56 views
+50

WSOD on views list page

I get WSOD when I try to access the views page (admin/structure/views). I get the notice below in the error log followed by the error. Notice: Undefined index: id in Drupal\Core\Config\Entity\Query\...
2
votes
1answer
767 views

Custom Views Sort Order Using Filter Value

I have a View containing a list of events. There is a date field on the event content type which contains start and end time: There is a filter for start time, which is setup using the Views ...
0
votes
1answer
724 views

Alter views contextual filter field

I have two content types, Brand and Sector. Brand have a sector field which is an Entity reference field. I have views that display the list of Brands and it has a sector contextual filter which ...
1
vote
1answer
2k views

Entity Reference View Widget problem with add selective

I am using a content type which uses a field as "Views" Entity Reference View Widget. When I click "add selective" or "add .. and close" in form of this widget, it's just redirect to http://localhost/...
1
vote
2answers
879 views

How can I add previous and next controls to the views slide show?

I have the photo slider on home page using views-slideshow. Now I need to add previous and next controls to that slider. How can I?
0
votes
0answers
33 views

How to prevent views to replace single quotes with double quotes in HTML output?

I'm using the rewrite option of a view field to generate some HTML. One tag has a data attribute, which should contain an array for later use in JavaScript with JSON.parse(): <div data-image-src='[...
4
votes
1answer
1k views

Alter granularity in date exposed filter from Y-m to Y if only year is selected

I am trying desperately to get the following working: Goal: I have a views that displays a list of events. To this views is a date exposed filter attached, with granularity Y-m(year month). I want ...
0
votes
1answer
32 views

Where are the Views located?

This is related to this question I asked. Bottom line is that for some reason some junk view is stuck under the Views list and when accessing the List I get a WSOD. I confirmed that is a view issue ...
0
votes
0answers
44 views
+50

View display plugin “entity reference” not using translation

For some of my entity reference fields I'm using "Views: Filter by an entity reference views" as reference method. I've configured those views to use the current interface language for rendering (with ...
3
votes
1answer
950 views

Displaying Content Flagged by User Name with Flag Module

I'm using Drupal 7.38 with the Flag (v7.x-3.6) module, along with Views. I'm setting up a flag for content. My goal is to display a list of users whom are flagging content (along with aggregated ...
0
votes
1answer
21 views

Show multiple term references as ID in one row

I've got a view of nodes, displayed as fields. As each node may have references to multiple terms/tags, I would like to show all these tags. When I use field "term_node_tid", then I get the multiple ...
0
votes
1answer
653 views

How to filter entities in View by all of their taxonomy term reference fields?

Let's say I have a custom entity that has two taxonomy reference fields: categories and tags. And I want to display all entities that have taxonomy term with id 1. The term is a dynamic value(...
1
vote
1answer
18 views

How to create a view to count comments per user?

I am trying to create a view with a table that shows all the users and the total number of comments that user posted in descending order. I am not sure what I am doing wrong but I spent hours on this ...
1
vote
1answer
756 views

How to add twig code in View 'global custom text' field?

I want to add if condition in my "global custom text" field saying if node is published, print some link. I tried below steps , but it is not working: 1.I have added "Content: Publishing status" field ...
0
votes
1answer
647 views

How to set default values for “modify entity values” form

I have a view with nodes and a views bulk operations field. With this vbo field I like to "modify entitity values" of the selected node. Is it possible: to automatically check the checkbox for a ...
-1
votes
0answers
36 views

How would we strip html tags for the views exposed filter without using the raw filter?

Using the following example below, we are trying to display a view that has the following twig template (views-view--myview.html.twig) and exposed filters. There is a need to remove all html tags ...
0
votes
2answers
886 views

Views Table Grouping not working if group field is blank

I'm using Drupal 7. In a field collection view, I have data in a table that has field groups. I have 3 fields I want to group on, the first two are required, the third is optional. Everything worked ...
0
votes
0answers
20 views

Views result count incorrect with Search API

I'm using Drupal 8 Views in combination with a search index from Search API. When using Global: Result summary in the header or footer of the View, the total number of results shown in the summary is ...
-2
votes
0answers
20 views

How to grant access to Reports? [on hold]

As admin I can see "Reports" in the admin menu. I cannot figure out how to give access to these reports to lesser roles. I have looked at permissions and connot see where to allow access.
2
votes
2answers
768 views

add css if url contains

I have one node type and two page types for this node. http://site.com/themes/* and http://site.com/years/* And i want to hide one of the "view-filed" in all "years" pages using the css. Found ...
2
votes
1answer
701 views

Views Exposed filter text search for multiple value field

I have 6 fields (in Profile2) I want to combine into an exposed "Global: Combine field filter": Field 1 = text field with 1 value (text) Field 2 = text field with 1 value (text) Field 3 = text ...
0
votes
1answer
686 views

fullcalendar is putting my events into the “all-day” category

I'm doing some stuff with fullcalendar and views that, more or less, is working. In particular, a month view properly shows a set of events on the day in which they're scheduled. However, when I ...