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
3 views

Get date exposed filter value

I have a view with a date exposed filter. I need use this date exposed filter value in custom php code. How can I get current date exposed filter value?
0
votes
0answers
11 views

Webform entity checkbox reference settings on view doesn't work

Version: Drupal 8.x-7.8 Module: Webform 8.x-5.4 Context: I try to modify the display of an entity checkbox reference field. In that purpuse, I've created a view entity reference. Then, in my ...
-1
votes
0answers
16 views

Geolocation Google Map views settings

I'm working with the Geolocation module along with Google Maps integration in Views and am happy with the results so far. In interested in potentially leveraging some of the additional options found ...
0
votes
1answer
21 views

Broken/missing handler error for my custom views filter?

I am trying to write a custom filter for views. The goal is to filter by alias, but that's not important now. It seems like I am missing a step to get view to recognize my filter hander after adding ...
0
votes
0answers
11 views

How to prevent Areggator module from sorting feed by time stamp(Drupal 8)

It seems like the agregator feed automatically sorts feeds by the timestamp, is there a way to get rid of that option. The feed that i'm using is already in order, but the sorting by time stamp messes ...
0
votes
1answer
16 views

Redirect to view display after form submission

I'm using a form_alter hook to add a custom submit callback. I want to redirect the user to a particular page display of a view. However, I'm having trouble figuring out how to specify the path. In ...
0
votes
0answers
14 views

Cascading entity reference

I am trying to configure a Groups-style offering, as such: Users make themselves available for selection by Groups (Available to Groups boolean) Group Administrator (GA) selects/requests Group ...
1
vote
0answers
14 views

How to achieve dependent filters programmatically for views exposed form?

I have a requirement like Category and Sub-category should display as dependent filters. When I choose a Category next related sub-categories should show up in another field. These mapping is done in ...
0
votes
0answers
20 views

How to redirect a module button to a specific external Url

I'm trying to make a button type to redirect in an external Url and I don't know how to make it. I already make the simple Form and I need help for make this function. I'm using Drupal 8 Thanks in ...
0
votes
0answers
13 views

How to choose content field shown in View using URL parameter?

I have contentType Screenshot which has 6 Image fields shot1..6. Then I have a view screenshots_1 which shows shot1 in a grid. I need to have 6 paths, e.g. /screenshot_1..6 each pointing to same view ...
0
votes
1answer
21 views

How do I exclude a node from an entity reference field?

I have a homepage content type which has a featured_article field, an entity reference field that allows the editor to choose a single node from the Article nodes. That node is displayed as Featured ...
0
votes
1answer
21 views

How to alter the search api views exposed form field value?

I have a search api view. Which has an exposed some exposed filters. The exposed filters contains postal code, city and latlong field. The user will enter the city and postal code and then in the ...
0
votes
0answers
6 views

How to remove duplicate nodes from REST export while applying fallback language

I have created a view using REST export for CT-News. It is formatted as hal_json. It is having filter(Interface translation Lang and English as checked). News is filtered based on the dates(Latest ...
1
vote
0answers
11 views

How to add an alias filter to the media view?

I have a path alias for my media content provided by pathauto. The media view at 'admin/content/media' shows all the content. I am able to add filter for the media entity name, type, language and ...
0
votes
1answer
26 views

Dynamic results label for Views with Taxonomy Filters

I'm using Drupal 8 Views with Better Exposed Filters to filter a custom content type by two custom taxonomy vocabularies. Results are filtered by: Content: Published (=Yes), Content: Content type (...
0
votes
0answers
20 views

What is the difference between Content and “Content (Vary by Code)”? [on hold]

I am trying to understand what the difference between Content and Content (Vary by Code) in Views under the Show setting. I know that by setting Content, we can set the view mode for the nodes, but ...
0
votes
0answers
10 views

How to get a correct date range per country?

1 I have a Daily Expense as content type where I add the date of the expense as well as the city & country. With this information I want to output my travel history timeline/table with the period ...
-1
votes
2answers
57 views

How to create a pager to display next article in particular taxonomy?

How to create a pager to display next article in particular taxonomy? I can not find any module. I tried to do this with a view. I created a view that display all content from article and add a pager,...
0
votes
0answers
18 views

Allow video and audio tags in views “Global: Custom text” field

We wanted to have HTML video and audio tags used within a "Global: Custom text" field. But video and audio tags get striped in output. After some debugging I found, the custom text undergoes ...
0
votes
0answers
7 views

Distance based search view to filter on near by location

I have these module installed. geocoder geofield geofield_map addressfield gmap I have a geofield field in my content type which saves the lat long from the address field. I have created a view, ...
0
votes
0answers
19 views

View with Taxonomy Path

We have a taxonomy vocab called Phones that goes like this. Taxonomy: Phones -Nokia --3310 --Jitterbug --7.1 -Samsung --Galaxy S6 --Galaxy Edge --S7 -HTC -- one --S7 list goes on, but you get the ...
0
votes
0answers
16 views

Attachement pager probleme

I created a view with a block that displays articles of a content type. Then I added an attachment that picks 4 articles randomly to show on the left side. The problem is when I scroll down on block ...
0
votes
0answers
18 views

Alter query to inner join subquery joining on two fields [closed]

I know this question gets asked over and over again (I found multiple), and each time it's slightly different. Most answers I found are on Drupal 7 though and I can't figure out how to approach this. ...
0
votes
0answers
23 views

Serialize entity reference field

I am trying to make a REST export of my content that has a entity reference field. I've tried using REST View module to get the serialize the entity reference. [{"title":"My contacts","contacts":[[],...
1
vote
2answers
23 views

How do I create a grouped exposed filter on a block?

I have both a "Galery" content type and a "Galery category" taxonomy. The taxonomy only has two terms, 'Video' and 'Photo' (picture). When I create a Galery content type, I need to choose the galery ...
0
votes
0answers
64 views

How To Get Item_id value in ProcessItem function

I developed a custom module which will process my items in queue. I have some custom table and custom action buttons to Process queue items. When i click on "Process Queue" button it will call the ...
0
votes
0answers
24 views

How to change the #size property of a select list of a selective exposed views filter?

I have a view with an exposed filter that is selective. Below is part of the array with the properties of the field. I need to set the #size to 20 but the code I'm using does nothing. Should be ...
-2
votes
0answers
19 views

How do we add additional formats to the default ones supplied by Restful Web services?

I am using the Restful Web Services module to provide a Rest Export for views. I want to output the view as JSON. However I am seeing that there are only two formats - JSON and XML. I want to output ...
0
votes
1answer
25 views

Weird apostrophe issue

Using Drupal version - 8.7.4. Added a 'Text (plain, long)' field for news summary to news content type. There is a news view that shows all recent news items with the summary. I created a new news ...
0
votes
1answer
42 views

What does the embed display type do?

I've been trying to find an answer but any search for views embed display brings up a bunch of unrelated modules and questions. There is a Views Display Type/Mode/Whatever called "Embed" that you ...
-1
votes
0answers
14 views

one view with multiple search filters in a different view?

I have a problem what i want to achieve is that i have one view for my main page and there's a different filters from different views. Example:I have filters in my main view "Search for name" "drop ...
1
vote
1answer
21 views

View block with contextual filter on taxonomy term name in URL doesn't work

Say, I have taxonomy vocabulary 'fruit' with terms like 'apple', 'pear' and 'grape'. Through content type 'Healthy', 'Healthy' content is made using a entity reference field to choose a term from the ...
0
votes
1answer
11 views

View linked to the 'main navigation', menu disapears when I click on the menu tab, but I see the page

I'm new with Drupal. I'm using Drupal 8. I've create a View, I've create a Page and linked the page to the 'Main navigation'. In the 'main navigation' I see the new create menu tab. When I click on ...
0
votes
1answer
14 views

What is “Sticky to top of lists” value?

I'm creating a view, and I've pulled in the sticky to top of lists field, as well as a view conditional field. I want to determine if "sticky" is true, and set a value (so I can add it to a custom ...
1
vote
1answer
16 views

Exporting a View CSV during Cron

I'm working on a drupal 7 site and my client would like to have a certain view export as a CSV once a day into a folder. My initial thought was to tie this functionality to our cron schedule, but I'm ...
0
votes
1answer
20 views

How do I change the description of a view?

I have some existing views for which I have written a developer guide description. Now I duplicated the views for some other task, Duplication is successful but I didn't find any possibilities to ...
0
votes
0answers
18 views

Showing a View of a Paragraphs block in a node with contexual/relationship filters

I have a slightly complicated question. So i'm experimenting with nested paragraphs where the parent paragraph is a container for another paragraph. In this case, i'm making an Agenda/Event program ...
0
votes
0answers
14 views

How to combine two operators in search api full text search?

I have a search api view. I have an exposed filter for full text search. In the filter settings, I am using search keys and in Query settings I have selected multiple terms. I used this settings ...
1
vote
0answers
39 views

Filter a view displaying nodes of one type using a user entity reference field on that node

I have a vocabulary (Countries) listing all countries. I added an entity reference field to the User entity (Nationality) referencing the Countries vocabulary. To the Article content type, I added: ...
0
votes
0answers
17 views

How get Views data relationship values in one multivalues field?

Sorry for my english, but I struggle with this matter for too long now, and I want to know the proper way to display relationship datas in Views. Assume you have a relationship between data that you ...
0
votes
1answer
25 views

Changing position of the header in a view

I have the "Result summary" in the Header for my view however, it is being displayed at the top of the content. I would like it to be displayed in between the search form and the search results. I ...
0
votes
0answers
13 views

Additional uncaught exception thrown while handling exception while creating a view [duplicate]

I am new to drupal, Created a website on drupal8 which has multilingual modules enabled and added one language and translated a content type. Created some views on this content type along with other ...
0
votes
0answers
26 views

How to display '&' as it is instead of HTML 'amp;' in search autocomplete? [on hold]

I am coming across a strange issue in using Search autocomplete. When I am searching for a word which has & symbol, in autocomplete its showing up as &. In backend views of Node ...
0
votes
0answers
12 views

using search api solr views, how could i get a list for all discrete values a field

i have created a view, with nodes indexed on solr. My problem is that the view is about a content type, which has a field which is a node reference to another content type. So how in the filter area, ...
0
votes
1answer
18 views

VBO: “Change owner” Vs “Change the author of content”

I would like to change the author of a content for a bunch of nodes. So I've chosen Views Bulk Operations (VBO) module to achieve it. Part of it, created a VBO view, but in the VBO options I see "...
0
votes
0answers
19 views

How to install two modules that depend on each other?

So let's say I have module A and module B. A has a view in which B is used and B has a view in which A is used. The views are exported for installation on module install. How do you write the ...
0
votes
0answers
11 views

Entity Reference selection: Nodes by Author available to flagged Group

I've looked at both Organic Groups and Groups and they don't quite work for me, so I'm trying to do my own thing. Here's the setup... Contributor (user type) requested/invited to Group (content type)...
0
votes
0answers
11 views

Using “Webform Select Image” ! Where do i find the options value key?

I need to do Views filtering based on a "webform submission value" using "Webform Select Image" ! Where do i find the options value key ?
0
votes
0answers
23 views

All links opening in a new tab

I have just inherited a Drupal 8 codebase from someone, and upon getting it all set, I noticed that there is an open-link icon against every link (see screenshot), and every link is opening in a new ...
0
votes
0answers
15 views

Duplicate published content to another language

I have a big question without a solution, but I can't believe it doesn't exist. I have a site in Portuguese and one in Spanish, I want to pass the contents of "pt" to "es", how would I do it without ...