We’re rewarding the question askers & reputations are being recalculated! Read more.

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

Exposed Sort as Dropdown in Drupal View?

I am using Better Exposed Filters(BEF) module/Drupal 8/Views module. I have a view for news list and there is a Date field that I would like to sort ascending or descending, but the sort date field(...
1
vote
1answer
19 views

Many items in one table cell

I have a very complicated view, and I can't change the existing field structure (it's an established and functioning site). This is a simplification of the problem, but it has to happen this way, I ...
0
votes
1answer
13 views

Create a view from both user and node content

Is it possible in Drupal 8 to create a view from both Users and other content? I need a page that shows photo's from Users and logo's from a content type 'Organisation'. If I make a page view from ...
0
votes
0answers
13 views

Adding filter criteria under Views-Frontpage

Im watching youtube video #40 in the Drupal 8 Site Building Course. Instructor is adding a Filter Criteria under Views, then Frontpage. So we click on ADD, then he wants us to search for "Node" and ...
0
votes
0answers
26 views

Modify entity values with Views Bulk Operations failed (PHP Fatal error: Cannot unset string offsets)

Related question : How to deal with PHP Fatal error: Cannot unset string offsets in field.default.inc when implementing custom widget? Working on Drupal 7.67 with Views Bulk Operations 7.x-3.5 ...
0
votes
1answer
29 views

Add a class to a image for a specific view

I need add a class to a image for one specific views. I tried: theme_preprocess_field() but it doesn't work theme_preprocess_image() but it's for all the images I tried what suggested in Override ...
0
votes
0answers
17 views

Contextual filters - using search in custom block does not work

After a long time I started developing my second Drupal site. I'm currently creating a view with two contextual filter (postal code / locality). On my site, I have a block "Search" in which I set a "...
0
votes
0answers
15 views

How to show “custom field” a user profile in a Taxonomy view?

I have a view set to show the content where I show the taxonomy and fields of a Content Type. At this point I added a Phone field in the user profile in> "config/people/accounts/fields". How do I ...
-2
votes
0answers
38 views

Unexpected error occur when I render a views field in views twig file [duplicate]

I have created a User Profile block view and have an HTML template for this. The view is working normally without using a custom template but when I create a custom twig file name is views-view-fields-...
0
votes
0answers
27 views

Field replacement pattern not rendering

I am running Drupal 8.7.8 I've created a view and excluded my fields from display except for the last field for which I have rewritten the results to output all the replacement strings in a certain ...
1
vote
1answer
63 views

How to call hook_theme_suggestions_HOOK_alter twice, if node is shown twice?

What I want to do is show the contact person responsible for a language in two different regions simultaneously, but with different twig templates. I therefore have two regions: footer and sidebar I ...
1
vote
0answers
59 views

How to load a view via ajax without breaking ajax functionality?

What ist the correct way to load a View via Ajax and not breaking the view ajax functionality like the pager? I tried it this way: In a template: <a href="/example-module/15?token=...
0
votes
0answers
7 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
14 views

Keep open state of a block when the page is reloaded

in a search_api view I have several facets links. These links are placed inside several block. If I open a facets block (collapse block), and I click on a facet link the page is reloaded...and the ...
0
votes
0answers
14 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 ...
-2
votes
0answers
19 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. I'm interested in potentially leveraging some of the additional options found ...
0
votes
1answer
34 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
19 views

How do I avoid the Aggregator module from sorting feeds by timestamp?

It seems like the Aggregator module automatically sorts feeds by the timestamp. Is there a way to get rid of that option? The feed I'm using is already sorted; the sorting by timestamp messes it up. ...
0
votes
1answer
21 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 ...
1
vote
0answers
16 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
21 views

How to redirect a module button to a specific external Url [duplicate]

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
18 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
23 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
23 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
7 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
12 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
35 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
11 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 ...
0
votes
2answers
73 views

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

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
19 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
8 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 ...
1
vote
2answers
25 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
67 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
25 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 ...
0
votes
1answer
27 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
44 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
vote
1answer
22 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
15 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
29 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
25 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
15 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 ...
0
votes
0answers
41 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
20 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
49 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
14 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
13 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
20 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
20 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 ...