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.

-1
votes
0answers
15 views

How to create a block “Search: More like this” with my articles?

I noticed that in the context filter of the view, there was a filter "Search: More like this". How to make it work? Is this the right solution ? I have a tags field on my articles with taxanomy terms....
0
votes
1answer
13 views

Help with view filters

I have a view using one content type: fee_schedule The view contains fields for species, keywords (hidden), and the title. The filters need to show ALL species except when searching by keywords. The ...
0
votes
1answer
6 views

Views Contextual Filter by taxonomy in field collection

I have a Drupal 7 project I'm working on that's got me stumped. I'm building a site where the node (Decals) are applicable to models and years (This decal is correct for this model of this year). ...
0
votes
0answers
6 views

Is it possible to create an Ubercart Orders view that includes line item details?

I would like to create a View of Ubercart Orders that includes details about the order itself -- collecting the various line items into a single column. Ultimately this will be used to generate a ...
-1
votes
1answer
15 views

How to Search Content in Views?

I have created a view to list all the contents I created. I need a search field in the view to search for contents. I tried the search module and when I search using one of the content names, it ...
1
vote
1answer
41 views

How to make exposed timestamp filter accept human readable date

I'm using Drupal 8. I created a new content type (title, body, image, date). The date is a timestamp field. I used the devel module and the Realistic Dummy Content module to generate a test content ...
0
votes
0answers
13 views

Adding a “Clone” link in view fields

I'm trying to add a Clone link in view fields, and I get the column in the result, but no link. I added n/a in the No results text, and I indeed get n/a displayed. I guess the node doesn'...
-1
votes
1answer
12 views

Add 'duplicate' link in view fields [on hold]

/admin/structure/views I need to add a 'duplicate' link to a view See the following image to add 'edit' link to a view This is result in: I would like to add a duplicate link as well as edit How ...
0
votes
0answers
8 views

What's the best infrastructure to set permissions to user roles that controls who can see which Nodes and which Views?

I'm building a Drupal 8 website that needs pretty stringent permissions. I have already created the (4) user roles for the site, but not sure the best way to handle viewing permissions. I see that ...
3
votes
1answer
64 views

How can I show the user login block on the 403 page?

With D8, I have a node (content type: basic page) that I use as a custom 403 (access denied) page. I set this as the custom 403 page on: /admin/config/system/site-information. The path is /node/21, ...
-2
votes
0answers
18 views

Unable to print view result in custom template [on hold]

I have created a view in drupal 8 and then I have created a custom template. where I use the 'views_get_view_result' drupal core api. but no result found. Here my code <?php $view_result = ...
-3
votes
0answers
14 views

Wildcard search not working

We have created a view which is based on the Solr index. We have provided multi-field full text exposed filter to search the terms. We are using Solr 7.4 and Drupal 7.59. We are facing problem ...
-3
votes
0answers
12 views

Show the Content based on date of birth in Views

I am working on articles to be filtered by Date of Birth. Scenario : I added a DOB date field to article content type. Now, I have to show articles as , If today is the DOB of someone from content ...
0
votes
3answers
18 views

View listing related nodes by taxonomy term

I have a content type representing a book. Each book as a genre (SciFi, Fantasy, Thriller ...) and I would like to expose, on the page of a book some books sharing the same genre. I created a view ...
0
votes
0answers
16 views

How to token Insert nth element of Iframe?

Module used: Token Insert I have a content type with an iframe field which accepts multiple values. In my wysiwyg body field, I did a token insert. When I add this iframe field which has only one ...
-2
votes
0answers
23 views

How can I build a Presentation Manager? [on hold]

My project's structure: I'm building a Presentation Manager. A Presentation has a title, an image and Slides A Slide has a type (can either be text, image or video) We want to be able to re-order ...
0
votes
2answers
21 views

Show View When Empty and Hide View When Not Empty!

I have a webform as a block which sets a value connected to the logged in user. I want to display the webform if it hasn't been filled in yet by authenticated users, and hide it when it has (based on ...
0
votes
1answer
21 views

How do I create a folder structure inside a view

I have created a view to get the all images that I have used in the website. But it returns as a bulk list. But I have saved the images according to a folder structure. How do I get the images ...
0
votes
0answers
17 views

Custom Views Field Formatter for List - show all values and indicate selected/not selected

new Drupal user here so please forgive any rookie assumptions or questions I may have. I need to get all values (even those not selected) from a select list field in a view. I'm trying to create a ...
-1
votes
0answers
20 views

How can I build a custom views handler of the custom field type?

I contribute a module Taiwan Address Field with custom field type. I want to build a custom views handler filter with custom options on Drupal 8. How can I do that ? Is there any examples ? ...
0
votes
1answer
29 views

Altering Views Exposed Form Elements and their Associated Labels

I have a series of Views Exposed Forms across a Drupal 8 website. My goal is to generate unique template suggestions so I can theme each individual input and their labels differently as needed. Here ...
0
votes
0answers
18 views

Field content not showing in public view

I didn't build the website, and I'm new to Drupal. I've been asked to add a new field to an existing content type. I've added the field, and it shows up on the form for that content type, but the ...
0
votes
0answers
47 views
+50

Print commerce pricing attributes to email receipt

Users cannot see what size or color shirt they purchased in the email receipt because tokens won't print the attribute fields provided by Commerce Product Attributes / Commerce Pricing Attributes / ...
0
votes
0answers
8 views

Data document format issue

I am trying to expose the node data in JSON format using view but having an issue to output the image_URL within the JSON data. If I change the output format to fields/Grid the image render and shows ...
1
vote
1answer
18 views

Filter view list items by user property and item property

I have a view where I want to output a list of content node teasers. At the moment all content nodes are used, but I want to filter the output to only contain nodes that have a certain value in a ...
0
votes
1answer
29 views

Embedding a view for search and redirection

I have set up a view for searching using Search API. In my specific setup, I need this search to be context sensitive, i.e. I have several pages /foo/search, /bar/search, ... and these return ...
0
votes
0answers
25 views

How do I create a “Filter By” option?

I'm trying to make a simple "Filter By..." option section for a View such that when someone wants to narrow results they can do so by clicking a checkbox or link and getting a shorter list, narrowed ...
0
votes
0answers
22 views

Multiple exposed form blocks with different fields

Scenario: View fields: name gender age especialty exposed form block (1) fields: name especialty exposed form block (2) fields: (This is also I want to have but as a separate block) name age ...
0
votes
1answer
21 views

How can I sum aggregate of expression

I have a problem that looks relatively simple. An activity entity has multiple invitation entities, the reference is from the invitation.activity_id => activity. Invitation has a completion_date (...
0
votes
1answer
17 views

views_embed_view not working with multiple values argument

I'm trying to embed views like this: views_embed_view('articles_list', 'block_1', '11+13'); If I type 11 in arguments, it does take the argument. It works good if I preview the view and enter '11+...
0
votes
0answers
15 views

Dont show results a user has no permissions to

I have created a view that list media entities that are related to the module: Groups. These documents have certain restrictions to them. Each document can get 1 of 4 permissions: Permission A ...
0
votes
0answers
20 views

Relationship between views with shared string field been used as id

Issue: (Updated issue description) I need to list all properties where their field_development_ref value matches the new_homes_development content types' field_development_ref. The view will be ...
0
votes
2answers
31 views

How can I filter a view by Content Type -or- Taxonomy Term and have both sets of items show?

I have a basic view that works great. It shows a list of nodes that are filtered by content type. To that list of allowed content types, I want to add a taxonomy term. That is, the view should show ...
1
vote
2answers
33 views

How do I programmatically create a view in a custom module?

I currently have a custom module that lets you create an entity. The list page for this has gotten to be really long so I decided to create a view for this to allow filtering. If this were a new ...
0
votes
1answer
25 views

How to get field values in a View Twig template

sorry for the basic question, I have a Twig template with a View outputting a custom content type, with Format set to show fields.. I have debugged with Kint, but I can't see a fields array ...
0
votes
0answers
10 views

How do I show terms only permitted for a user/role?

I have a view which shows all terms of a vocabulary. I must add a filter that shows only taxonomy terms for which a user or a role has permission. I have installed the module Permissions by Term. Now ...
-1
votes
1answer
19 views

dynamic drop down menu items

I'm new in drupal and I would like to add a link Projects to the main navigation menu: Projects proj 1 proj 2 ... proj n This link projects with a drop down menu with N links. Until now I ...
0
votes
1answer
28 views

How can I change the value of a field in node / [id] / edit?

I should change the value of a field before it is rendered. I tried with [NAME_MODULE]_node_view but it is not invoked when I edit the node. Thank you so much.
0
votes
0answers
20 views

How to reset to default overriden Views metatags?

I'm using a Metatag module and also Metatag: Views. This module works fine, but I don't see how I can reset to defaults overriden Metatags in views. It is possible? From this To this
-1
votes
0answers
23 views

Where in the Views processing cycle can I read the filter parameters?

Because the exposed filters area takes up too much space on the screen, I want to collapse the exposed filters area and display a plain text version of the views parameters, rather than waste spacing ...
0
votes
1answer
93 views

How to create custom view/display for few content_types?

EDIT: see two paragraphs below to what I managed to get I can't find a way to use single template for few but not all content_types. Let's say I have content_types A, B, C and D. I want to use ...
0
votes
1answer
28 views

create views for a field submitted more than once in one row

I have a content type that only has one field. (for example weight) The user submits this field multiple times. now I want to create a view that shows all the weights submitted by the user in one row, ...
1
vote
1answer
16 views

How to preprocess group title render in views?

I tried to preprocess a title of the group in the result of the rendering of the view. Example: Actual: Group 1 title Item 1 Item 2 Item 3 Group 2 title Item 4 Item 5 Item 6 Expected: <span ...
0
votes
1answer
39 views

How can I limit displayed nodes by term reference from current user?

I am trying to create a view that to show content classified by taxonomy term and the hierarchy level of the logged in user within that taxonomy vocabulary. For instance, the content is organized in ...
0
votes
1answer
23 views

RESTful view contextual filter to use path alias

I have created a RESTful view in Drupal 8, there I need to display a few of node contents by node alias in contextual filter. View URL: www.example.com/api/book-details/{node-alias} Instead of node ...
0
votes
1answer
27 views

Views contextually filtered by terms in paragraphs

TL;DR, Below are the structure of content types, paragraph types and taxonomy in my site. Taxonomy vocabulary - Category Terms - Sports, Politics, Business Paragraph type - Multi Article Fields - ...
0
votes
1answer
20 views

is there any way to remove “Password reset instructions” hint on reset you password page?

Could not find any hooks or templates for it.
1
vote
1answer
62 views

How can I limit the exposed filters to only display values for which content exists?

We have a view for the Basic page content type, which has a Category field that allows to enter multiple values. All values for Category are displayed (IoT, Cloud, Security), but there are only nodes ...
0
votes
0answers
45 views

Using views field formatter with paragraphs

I've got a question that is a worry to me. So what do I want to do? I'm using drupal 8 with the paragraphs module. I want the content creators to be able to add an unlimited number of paragraphs that ...
2
votes
0answers
22 views

How can I prevent the theming layer being loaded for JSON requests?

I can verify that views-exposed-filter.tpl.php is being loaded for basic JSON endpoints that don't re-render any form fields: My autocomplete - /search_api_autocomplete/...