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.

0
votes
1answer
22 views

How to join values of multiple geofields in a view?

I have a content type in which the site of organizations are displayed in a leaflet map with the help of an addressfield. (And all organizations are displayed in a joint map.) But certain ...
0
votes
2answers
80 views

Multiple Relations and Contextual Filters in a Translated View

I have a View designed to filter down translated content (of type "Asks, Actions, and Updates") using three arguments: 1) country 2) year 3) month. I have translated the content type and content, all ...
0
votes
0answers
24 views

How to get paragraph items in user views list

I have lessons paragraph bundles which used for user accounts. I'm trying to list teacher user with paragraph bundle items. What I did: I've created user list.I added paragraph lesson fields but no ...
0
votes
0answers
23 views

Rest export contextual filter by taxonomy name

good night developers!. I have a view of a chapter content type and a relationship with the taxonomy term book. I can add any field from the taxonomy, but can not include the relationship in the ...
1
vote
3answers
60 views

Add a table class name to a View table

Can I add a custom table class name to a View that outputs a table, Or just add the name of the view to the table class name? There isn't a setting in Views to add a table class name, you can only add ...
2
votes
1answer
37 views

how rewrite pagination URL views for SEO?

i am trying to rewrite the views url pagination : /mypath/cat?page=1 to /mypath/cat/1 or > /mypath/cat/page/1 or /mypath/cat-1 cat is a taxonomy term. I have tried to rewrite url with Drupal\...
-1
votes
1answer
40 views

DraggableViews not displaying drag-handles

I installed the DraggableViews module on Drupal 8. On one of my views, I replicated the page that I currently use to display the content that I want. I renamed the new page adding "Admin" to the ...
1
vote
1answer
75 views

How can I find image style SRC from within twig template in view?

Why I can't use {{ file_url(node.field_image.0.entity.uri.value) }} in my custom view The result not like /drupal-8.6.1/sites/default/files/2018-10/gen9C52.tmp.jpeg
0
votes
1answer
39 views

REST export View shows “This display has no path” in View UI and 404 Error on page

I've got a fresh install of Drupal 8.6.x with REST/API/JSON Web Services enabled and I've created a Rest export View with path: /api/test which returns the correct JSON View results when I append the ...
6
votes
3answers
188 views

How to render two views in the same twig template

I want to render two views in the same twig template, but only one of them is rendered, and the second is always override with the same content as the first one. I have a content type 'contacts' and ...
0
votes
1answer
39 views

Adding RSS feed view

I was trying to add a RSS feed view in Drupal 8. I selected feed row style for Fields, and clicked on Save and edit, but I got this message. Row style plugin requires specifying which views fields ...
2
votes
1answer
18 views

Set a condition for one field to be unique in all the content types.

I am working with Drupal 8, and have a custom post type called: chapter. This content type is connected with a taxonomy term called: Book. Now, I have a field called: number, for specifying the ...
0
votes
1answer
14 views

Get taxonomy term field from where is attached

I have a taxonomy vocabulary like this: A |--B(branch_field) |-- C(branch_field) X |--Y(branch_field) |-- Z(branch_field) Each user has a reference to a taxonomy term. I need to create a view ...
2
votes
2answers
35 views

Independent search box for views taxonomy page

I'm using the "taxonomy term" view. I would like to have a search form box independent of this page, which I will place for example in my navbar, allowing me to search among the terms of taxonomy, ...
0
votes
0answers
29 views

Is it possible to filter content based on existing term id?

How to filter content based on taxonomy term id I have created a view in which news article are showing based on taxonomy term Is it possible to filter content based existing term id Suppose in ...
1
vote
2answers
54 views

Get taxonomy name instead of id

I set up a search criteria using taxonomy terms to filter content. The taxonomy and filter work great. The problem is the links return like www.example.com/work?tid=1 but instead I would like the ...
0
votes
1answer
22 views

In a writing a Views style plugin, how can I create a text input that accepts Twig?

I am writing a Views style plugin, and I have a text field (input) that I want to be able to accept Contextual Filter arguments (or potentially field values). I am envisioning it working the same as ...
0
votes
0answers
43 views

WebForm Select Element using Entity Reference View cannot use token in arguments

I'm trying to create a D8 webform that will take a date entered on Page 1 of the multipage form, and utilize that date as the contextual argument for an Entity Reference View. My date field is named ...
0
votes
1answer
39 views

How do I programmatically get the content title field from a view?

How do I programmatically get the content title field from a view?
0
votes
1answer
31 views

How to pass seperate contextual filter values to a view and get results programatically?

I've a view having two (separate) contextual filters, say node id and taxonomy id. We can pass separate contextual filter values with a "/". example: 12,13,14/8,9 as URL arguments. But how can we get ...
0
votes
0answers
126 views

Result of search not displaying

I have a module that automatically creates a view (via YAML) that displays indexed content, supposed to be searched by the users (Filter Criteria : Fulltext). When installing the module, the view is ...
0
votes
1answer
45 views

How to render content with <p> in twig to create paragraph

Sorry I'm newbie in drupal 8 I want to render my content from database which have <p> tags inside and my expectation every <p>content</p> will create new paragraph My database ...
0
votes
0answers
26 views

How to iterate a multi-value file field in View's custom text?

I'm using Drupal Views and I'm currently trying to figure out how I can fetch the URL of the file and description and loop them one by one. I'm using custom text to create a custom markup and below is ...
0
votes
0answers
7 views

Error in TranslationLanguageRenderer halts bootstrap

I'm getting this error when I try to start my local version of our production site. The production site is working properly, but I'm having a lot of difficulty with my local dev site. The website ...
0
votes
0answers
13 views

Trying to get a paragraph bundle within an OG to use EVA display

I am looking for help getting a news block working for my website. I currently have: A paragraphs field on a content type where the user can add a "Department News" paragraph. The page it's being ...
0
votes
1answer
16 views

Views block doesn't appear on page if only media-type content is selected

I've created a view block that has a contextual filter with a Content ID from URL. The view is only to appear on my content types if the field_aside_content has any data in it. This field is just a ...
0
votes
1answer
9 views

For views, how do I display only one of a series with the same title?

We have a view that displays upcoming events. We use civiCRM for events. Some of our events are ongoing: they have the same title, but different dates. What logic could I use to display the next ...
0
votes
1answer
17 views

Views filter criteria groups OR not working?

I have a view with FILTER CRITERIA set. I have three groups, each joined by ANDs, with the criteria within each group ORed. The final group are two taxonomy terms, meaning I want my query to return ...
0
votes
0answers
13 views

Way to sort on current page translation language in views (D8)

Is there a way to sort nodes on current node translation language in views (Drupal 8)? A bit like you would use 'Interface text language selected for page' under filter criteria. With sort criteria ...
0
votes
0answers
22 views

Reverse entity relationship generating weird SQL

I have an "Activity" entity and an "Invitation" entity which links to the activity by its ID (also to the invited user but that's not important here). I want a relationship in a view where various ...
0
votes
1answer
21 views

Failed to load popup dialog with in views

I am using Drupal 8.6.1 with the 8.x-1.0-alpha2 Footable module and the core dialog. What I did so far: Install the Footable module. Download the most recent 3.x.x version of the FooTable jQuery ...
0
votes
1answer
42 views

Programatically change autocomplete views exposed filter by a select list

I have a view which has a filter by users that created de nodes. This filter is exposed, in order to select an user and filter the results by this user. I would like to change the default autocomplete ...
0
votes
1answer
39 views

Can You Render Data from Forced Fields in Views While Using format “Show: Content”

Drupal 8.x Is it possible to render fields in a view when the display format setting is set to format "Show: Content" ? For my case, the contrib module I am using has some views integration that ...
1
vote
1answer
20 views

Is there a way to add non indexed fields to a search api view?

I’m wondering if it’s possible to add non-indexed fields to a search API indexed view? I want the standard flags fields to be available on the indexed search view. And I was thinking I could do this ...
2
votes
1answer
57 views

Render View with title in twig template?

Is there a version of drupal_view (or alternative) that will render a view with the title? It's a pain to hardcode titles or preprocess individual views just to get a title to render that is already ...
0
votes
0answers
13 views

How to display a list of users with last node added of specific content type

I want to display a views list of a user name with an image of the last content that has been posted for a specific content type. I have created the view using a views settings of users. The basic ...
3
votes
1answer
34 views

REST export for nested lists of content

Ok here is my problem; I have a list of boats. Each boat have a list of engines that can be fitted to it. Engine is not in anyway coupled with boat as a particular engine can be mounted to any kind ...
0
votes
0answers
12 views

How to allow outputting of Commerce Order Item (product) information in a View that the user does not have permissions for?

I have a Drupal 8 View of Orders that have order items related to them. This View needs to show order items to a user that does not have the "View Orders" permissions. I've checked the "Disable SQL ...
0
votes
1answer
23 views

How to go from View to Webform, submit Return to View [closed]

User is working a list of names with Views... select a link on the view to open webform, submit the webform. Then I would like to return the user to the view.. Where he can continue working the list ...
0
votes
0answers
23 views

Sending ajax message using jQuery

I am using better exposed filters on my view and I need functionality, so that a second click on the same filter would reset filtering at all and give back all results, sadly I didn't find a solution ...
0
votes
1answer
32 views

User Stats Total Nodes, Comments, Flags

Is it possible to create a view be that a page or block that shows the following. -Total number of nodes user has created. -Total number of comments (all comment types) user has posted. -Total of ...
0
votes
0answers
17 views

Exposed Filters and custom Taxonomy Field - How do I show custom Taxonomy field with Term in Views Exposed Filter?

I need to show a color swatch next to each taxonomy term in an exposed views filter for Drupal 8. I have created the custom field in the taxonomy term and it will show on the actual taxonomy page. ...
-1
votes
1answer
23 views

View all Nodes & Comments by logged in user

Is it possible to show all comments and nodes created by a logged in user in one view? Would like to display fields. Show title and time stamp when the node OR comment was created. Another ...
0
votes
1answer
18 views

View result alter title link based on content type

I have view which it has content type filter with more than 1 content type(Eg: A,B). For one specific content type(B) i want to alter the title link to external url(This external url is a custom field ...
0
votes
1answer
19 views

Is db_set_active a global or local setting?

I need to run a new query on another database. I configured the settings.php $databases = array ( 'default' => array ( 'default' => array ( 'database' =...
0
votes
0answers
21 views

Make the title field an external URL

I have a view in Drupal 7 that has a title field and a URL field. The latter contains external URLs. I'm trying to configure it where the title links to the external URL once the user clicks on the ...
1
vote
2answers
34 views

Show only nodes in a view which have the same value of a text field (field_phone_number)

I have a content type "ABC" with the "telephone" field (field_phone_number) added to it, and I already have on my website around 1K nodes of this content type "ABC". I want to display a table view ...
1
vote
1answer
22 views

How to get Views field value in View twig template if the Views field is set to 'Exclude from display'?

I have a Views fields twig template where I want to print the Views fields values manually. For example, using: {{ fields.body.content }} But this only works if the Views field is not excluded from ...
0
votes
0answers
19 views

Twitter timeline only includes tweets of user that were made after account was renamed

We had to rename the handle of a twitter account. The twitter timeline view now only shows tweets with the new handle. I guess its because of the screen_name join This is the view sql statement in ...
0
votes
1answer
39 views

How can I see the clean query of a view?

I created a test view. It displays data of a content type 'Anagrafiche (name for internal use: contatti)'. The view has the following fields (sorry for the interface language): Contenuto: Immagine (...