The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [views]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
31 views

How can I use <svg> tags in “Views Custom text”?

I added a custom text in views when add {{ field_svg_name }} to custom text output code field_svg_name in double quotation "<svg>...</svg>". but when add field_svg_name in fields without "...
0
votes
0answers
12 views

contextual filter result is empty then consider only FILTER CRITERIA

I have the requirement where I need to show related books. if I click on any of the books. So for that, I have used views CONTEXTUAL FILTERS with argument Content: ID and Taxonomy term: Term ID. ...
0
votes
1answer
26 views

How to display the content of the view in Twig?

I created a view with the machine name administration_utilisateur_abonnement_license I want to add a class under the div views-row. I created in my theme a twig file for the view views-view-fields--...
0
votes
2answers
29 views

View is removing iframe from custom text

I'm using a global custom text field within a view that is meant to display an embedded youtube video. However in the actual render of the view it's completely removed from the dom. My first ...
0
votes
1answer
42 views

Filter excludes date in end date field

I have a view in Drupal 8 as below. [The date column in below list, is not an event. its order item. so date showing is order complete date only] When I filter with start and end date, the data shown ...
-2
votes
1answer
27 views

Webform Group Member Composite

I need to create a Webform element that has a list of group members, each with their own checkboxes and text fields ('job description'). I figured out how to display checkable group members through a ...
-2
votes
1answer
52 views

How to make drop down for parent group in view have the name instead of the id as the parameter?

I have a relationship in my view to the content group content, and then I put in an exposed filter for the parent group. But the exposed filter works with the id of the group, I want it to work with ...
0
votes
0answers
26 views

How can I set the ics file name as the event title?

I have created a feeds view for the ical file. The format is iCal feeds. The path is something like this /node/%/event.ics When I download the file, the file name is event.ics. Can I set it to ...
0
votes
0answers
22 views

Destructuring View REST export

I'm having problems destructuring this JSON output, coming from a View REST Export: [ { nid: [ { value: 5 } ], title: [ { value: "...
0
votes
0answers
45 views

Entity Reference View fails after update to drupal 8.7.6

Recently I updated my drupal site from 8.6.14 to 8.7.6. A previously-working Entity Reference View display that is connected to a form Autocomplete field stopped working. The spinning circle keeps ...
0
votes
1answer
26 views

Exposed filter only allowing content types in list

I have a view called (Resources) that displays content filtering by content type. These are the selected options: Expose this filter to visitors, to allow them to change it: ✅ Filter type to expose: ...
0
votes
1answer
19 views

Unresolved dependency updating the module

I'm updating the Views module on a Drupal 7 site, and I'm receiving this message when I update the database. How do I resolve this dependency issue when I need to update the Views module first?
2
votes
0answers
61 views

Webform module loosing language for referenced options

First I have content type "Quiz option" which is translatable. Then I have a view that returns Entity references of that type. For language option I selected "Content language of view row" and also ...
0
votes
0answers
20 views

Views exposed date filter range format

I have a view with an exposed filter for a date range. I use jquery ui datepicker to select dates. It works good and I can select dates in spanish format (dd/mm/yyyy). But when I apply the filter, It ...
2
votes
1answer
37 views

How do I increase the character limit for the default “Fixed value” of a contextual filter?

I'm trying to make a view of my new products using the Content: Nid contextual filter. In this filter I opted to provide a default value, with a type of "Fixed value". On the "Fixed value" field, ...
0
votes
0answers
17 views

Unset cell item if field is true on a view page

I have a Views Table Page in Drupal 8 that displays node titles. On the node, there's a checkbox field that when checked needs indicate to the Views Table Page that title is not to display. I ...
0
votes
1answer
18 views

Admin page to show 2 blocks (or page+block) with 1 filter that affects both blocks

I am new to Drupal and would love some guidance on how best to achieve the following: An admin page that has (top-down): - a date selector, defaulting to today's date - a section displaying Arrivals ...
0
votes
1answer
30 views

Removing entity queue entries from a view

I have a list of 100 projects. I have set 10 projects as featured projects using Entity Queue module. I have a projects page that shows has two views: First view: 10 projects from entity queue ...
0
votes
2answers
54 views

AJAX Views with filter as path component

I have a view of Commerce products of type Print. The product type Print has a reference on a Taxonomy called Category. I setup the Category field as an exposed filter (dropdown) for my View page. The ...
0
votes
0answers
13 views

Updating Solr search_api filters on node deletion

With Drupal 7 I am using a SOLR search index. The index covers a particular content type. I have a view which uses the search facets and displays a paged list of items in the index. My problem comes ...
1
vote
2answers
102 views

Change page title from Views preprocess function

I want to be able to change the main page title based on some value that I get in a views preprocess function. The View is displayed as a page. function MYTHEME_preprocess_views_view(&$variables)...
1
vote
0answers
23 views

How do I display only a field? [closed]

I have a view which displays nodes of content type "news", which has two fields: f_one and f_two. What I want is: If f_one has content and f_two is empty, display only f_one If f_one is empty and ...
0
votes
1answer
39 views

Views view unformatted and outputting taxonomy custom field

Original problem I had was I setup a taxonomy called Category. I added some vocabulary to my Category taxonomy. Some of the terms I added have contain spaces. The labels should have spaces so I want ...
0
votes
0answers
9 views

Reinitialize views ajax after embedding a view

I have installed an ajax_links_api module, which basically allows you to load pages via ajax. I got everything to work, however, there is an issue with views. In my view I have infinite scroll and ...
0
votes
1answer
25 views

How can I filter entity titles in an autocomplete form and use the title as context for a View page?

I am trying to provide a form with a single autocomplete text field on the front page. The user can search for a title of the product (commerce_product), and when they submit, they're redirected to a ...
0
votes
1answer
22 views

Trying to filter a View based on a Paragraph entity reference

I want to filter a View by content type 'Article' and only content that is referenced to a specific node id 123. I have a Paragraph in Article content type. Inside the Paragraph is an entity reference ...
0
votes
3answers
35 views

Counting each filter near its label

I've created a view in order to override the default search page form and results, then I've exposed the content type in order to have the possibility to filter by that, all now is working How can I ...
0
votes
0answers
11 views

Webform default views missing “In Code”

I was looking in the error logs, and I realized that users cannot view submissions of webforms. I then realized that the webform views webform_analysis, webform_results, and webform_submissions were ...
0
votes
0answers
35 views

Sort handler with relationship

I added 2 views fields to make available the witdh and height of images using the information provided by the file_entity module. This works and I can show the values. Now I want to make both fields ...
0
votes
2answers
16 views

Exposed Form in Block Missing?

I'm trying to create a view based on a Solr search index that includes a search form in a block. The view seems to be working based on the preview I see when editing the view. I have set "Exposed form ...
-1
votes
1answer
35 views

Show a content type's subfield instead of the default title in Drupal 7 when using an Entity Reference field

I am editing a large Drupal 7 website. In a part of this site, decisions are shown. Each decision can contain related decisions. There is a custom content type decision, in which there is a field that ...
0
votes
2answers
37 views

Defaulting a value for a new boolean field added to an existing content type with content?

We have a Drupal 8 site. For one of our features, I added a boolean field called 'Pinned' to a our Blog Post content type. As I added the filed as a filter criteria to views, I noticed that, no ...
-2
votes
1answer
40 views

Default moderated content view has an error message

The following error appears in the default state at Home>Administration>Structure>Views>Moderated content>Edit. No valid values found on filter: Content revision: Moderation state. What is wrong?
2
votes
1answer
46 views

How to make Shipping services available in Rules tokens (data selectors)? [closed]

I am using D7 and Drupal commerce, with a flat rate shipping service. In my country the VAT for both products and shipping costs must be included in the total VAT amount. But the only line items ...
0
votes
1answer
24 views

Multiple pagers on same view page

When creating a view whose display type is page, we got an option to apply pagination using pager option given in view, where you get sort of radio buttons to select pager, full, mini, etc.. Do we ...
0
votes
0answers
13 views

Field Collection has Entity Reference field that use an Entity Reference View based on current NID. Adding an FC item clears all values

My node type has an unlimited values field collection. It has an entity reference field for Users. Its available values come from a view that uses current NID. The first FC item works fine, but when ...
-1
votes
1answer
21 views

Relationship duplicates data

I have a view of content type documents wherein I want the logged in user to request access for each document and after it approved or rejected the status next to that list of documents should show ...
1
vote
1answer
22 views

Hide a field for that particular row based on value from custom table

I have a custom module where in a user requests access to view a node. I have a view page which currently lists all nodes and has a button "Request Access" to it. When the user clicks on it, an entry ...
0
votes
0answers
20 views

View Custom Table not showing up in views list

I am using "View Custom Table" module, and am trying to render a table from the drupal database. According to the documentation, after the Custom table is defined, it should be available as a dropdown ...
0
votes
1answer
16 views

Show all nodes with the same term, the current user is assigned to

That sounds quite simple but I can't find a hint how to do this: I have invoices with a term reference to a "Department" vocabulary [field_invoice_department]. The user has a term reference to the ...
0
votes
0answers
55 views

JSON view (rest export)

I have a rest export view and this is my output: { title: "about", view: "[{"id":7,"field_history_json":7,"field_history_text":"sdfsfsdffd","field_history_year":3244}]" } My field "view" is a ...
0
votes
0answers
43 views

How to create a Contextual Filter using an Entity Reference field in user's profile?

My site's users have an entity reference field in their profile called "Club" where they select which Club they are a member of. Similarly, when creating a Project (a content type) you can select ...
2
votes
1answer
33 views

Find which views are using Views PHP

I have a project that is using Views PHP, and I'd like to figure out which views are using PHP from this module. This will help me determine if I can easily remove the dependency on the module. Is ...
-1
votes
1answer
53 views

How do I pull data from an external database, and display it in Views? [closed]

I am fairly new to Drupal, and just started working with Drupal 8. I know a table can be generated in Views for the content which is displayed/used somewhere on the site, and a table can also be ...
-1
votes
1answer
31 views

List files in a directory as a table

I created a folder inside of my Drupal directory where my client can directly FTP into and upload or remove PDFs. What I'm trying to do is create a page called "Documents" which then displays all ...
0
votes
0answers
31 views

Contextual filter on entity reference with Pathauto

I want to create an advanced view in Drupal 8 using contextual filters and relationships, but I fail. BACKGROUND: I have three content types: Programme Module Testimonial Testimonials may span ...
0
votes
0answers
40 views

How can I show view displays as Ajax tabs?

I would like to have a view with a Grid and a List tab (view displays) in Drupal 8. The URL should not change and the filter and pagination values should also be maintained when switching between ...
0
votes
1answer
65 views

How do I use a term page display?

In Drupal 7, the module taxonomy_display allowed me to insert a content view via views display options under the taxonomy manage display. I am working on rebuilding my Drupal 7 views for Drupal 8, and ...
0
votes
0answers
33 views

Views 'uses AJAX' with exposed filter prevents modal opening

I have a views page which displays rows of teasers. Clicking on the H4 title opens a Foundation reveal modal. Here is the views template: <li class="m-social-modal__item column column-block"> &...
0
votes
0answers
39 views

Custom views filter (select) handler error

I need your help. I try to make a custom views filter with a entity reference. I have some problem. I have this message, when I declared : The handler of this element is defective or missing. The ...