Stack Exchange Network

Stack Exchange network consists of 175 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
10 views

how to get valid URL in combination of text and field content in VIEWS

Field HOSTNAME returns IP Adress. I have to overwrite the field output . Is there a way to modify this with an given URL like this: 'www.ip-tracker.org/locator/ip-lookup.php?ip=' and adding the field ...
0
votes
1answer
40 views

Create the FooTable functionality by using only views

I noticed by using FooTable display on one of my view on a Drupal 8 site, it is increasing the load time of the view by more than 2000 ms. The main idea i am using Footable is because of the ability ...
0
votes
0answers
14 views

viewsreference child view Sample Code

Is there any example code for creating a new paragraph object with a viewsreference field and setting a view on the viewsreference field with its "type" and other display options set? Can't really ...
-4
votes
0answers
30 views

Display future dates and end dates with a view [on hold]

I have a view of events. Currently, the events are showing start dates/ future dates. If an event has a start date AND end date, it will only show that start date of the event and the event will ...
0
votes
0answers
22 views

View escapes node's text field HTML

I've looked at other posts but been unable to resolve the issue. I have a Text field (formatted, long) in a content type, when the node is viewed the HTML in the field displays correctly, when I view ...
-2
votes
1answer
24 views

I want to make a Drupal 8 view with contextual filter

I want to make an intelligent view and want to pass contextual filter. If the contextual filter value is passed in the url so only display the article having the id like http://example.com/article/2. ...
-2
votes
0answers
22 views

Taxonomy ul parent in view

Greeting, I am new to drupal, I am currently a web developer of a company and I have to address a project in drupal 7, reading tutorials and looking like crazy I found solutions for some things, but I ...
0
votes
0answers
11 views

View of XML feed: The exposed filter is case sensitive

I have a Drupal 8 view that uses XML as a data source. I have exposed filters set on the XML Text of the XML elements <first_name> and <last_name>. The exposed filters work, but they ...
1
vote
1answer
25 views

How to filter a node view on a paragraph field

I have a content type "Lunch" containing a paragraph type field named "Ingredients". This is a multiple values field which store a prapgraph type named "Ingedients" => Taxonomy term + Quantity LUNCH ...
0
votes
3answers
37 views

Menu tree from taxonomy terms and nodes which belong to them

i need to create a collapsible menu tree from taxonomy terms and nodes which belong to them (not nested terms, but content pages) i'm totally stuck about it i've found solutions for nested taxonomy ...
0
votes
0answers
11 views

How to use Views to calculate final balance based on custom content entity?

In a custom module (SEL), I have a custom Content Entity (Transaction) with these fields: $fields['dateoftransaction'] = BaseFieldDefinition::create('datetime') $fields['transaction'] = ...
-2
votes
1answer
9 views

How to extend better exposed filter?

I use "Better Exposed Filter" for my view in Drupal 8. I have included taxonomies into the filter, which have 3 levels. Is there a way to extend better exposed filter module to display taxonomies in ...
-1
votes
0answers
9 views

Can't able to add Drupal 8 Commerce PayPal Checkout details [on hold]

I'm trying to add paypal module in drupal 8 commerce functionality. And i downloaded paypal 8.x-1.0-beta4 version then installed and enabled. After that i trying to add paypal checkout payment gateway ...
0
votes
0answers
6 views

Produce array of results from view that has a pager

I am trying to get an array of all the view results in a views_hook_pre_render function. The problem I am running into is that the view has a pager (and needs a pager because it has thousands of ...
0
votes
0answers
8 views

Missing is empty operator on custom entity views integration

I have a custom entity called measurement. There is a baseFieldDefinition field called completed. When I am creating a view for this custom entity, I want to add a filter to the view so that only ...
0
votes
0answers
13 views

Prefilter facet using URL

We have added facet_categories to our Articles page which is a view page with the path url of /articles. Facet_categories is setup to be the Articles->Category field (which is a taxonomy term). ...
-1
votes
0answers
22 views

How to add Global PHP field in Drupal 8 views? [closed]

I want to add a Global PHP field in Drupal 8 views to add custom PHP field. How can I add this? Any module is available for above scenario?
-3
votes
0answers
17 views

How do I get to make my navbar overlay to work? need answers [closed]

I'm trying to make my website but it seems that my navbar overlay doesn't work. I wanted a curtain navbar and a slideshow but when I tried to make it work only the slideshow works. I can't even see my ...
0
votes
0answers
8 views

Contextual raw value spiit

I need to take a first text before dash from an address bar to list related content. So for example, from www.aaa.com/US-NY-New-York, I would like to take US with contextual filter. I tried the Raw ...
0
votes
0answers
60 views

Loading a view page is very slow

On Drupal 8.7.3 and a very powerful VPS server with php 7.2, I have a view (page) that will list all available nodes of a specific content type. The display of the view is "Footable" taken from the ...
0
votes
0answers
20 views

Add a custom reset button to a view page

We have a myview which as as a page display where the path setting is set to /mypath. On this page, we have an exposed form (exposedform_myview_page1) for searching the Article titles and a facet ...
1
vote
1answer
27 views

How to filter Views records by day-of-week, including multiples

I have a need to filter many records by the day of the week derived from a date-only field in those records (i.e. not today's dow). I would like a solution that works with views filters, as the wider ...
0
votes
0answers
20 views

How to display number of comments of a node as part of a “content” view with fields

I created a content view in D8, which shows me fields of a content type. Basically it works. Now I would like to have the total number of comments per listed node displayed as a view field ...
1
vote
2answers
50 views

Fetch view results from mymodule_preprocess_page hook

We have a View page that is coming from myview. Using the header setting in the view we have added @total results already, which displays in the views-view--myview--page-1.html.twig using the {{ ...
-3
votes
0answers
8 views

Hero image slider returns to first picture after downloading a picture from the slider

My website uses a hero slider and if you are on, say, the 4th bullet and select download, after the image downloads, the slider doesn't stay on the 4th image, but rather goes back to the start of the ...
-2
votes
1answer
32 views

How to trim title for mobile devices?

I am working with Drupal 8 website, on my view I have a list of contents. Some titles are pretty long, what is fine for teh desktop view, but for mobile version I need to trim the tite up to 30 ...
0
votes
1answer
13 views

How can one Rewrite results of a view using a Group By

I have created a view and then added a group by a certain field. Normally one would just add a new field then rewrite the results with custom html using replacement patterns. How would I go about ...
0
votes
1answer
16 views

How to use CiviCRM contact data latitude and longitude in drupal gmap formatted view

Environment Drupal 7.67 civicrm 7.x-5.13.4 GMap Module 7.x-2.11 Location 7.x-3.7 Views 7.x-3.23 What is working I have CiviCRM contact data for organisations which has been successfully geocoded ...
0
votes
0answers
17 views

How to “link” Views exposed filter (fulltext search) with Facet API block (on a specific field)?

Using Drupal 7.67, Search API, Search API Database Search, Views and Facet API. I have built a search engine page with Views and Search API (with a server linked to the Drupal database tables). Two ...
-1
votes
1answer
22 views

How to remove arrows from views Select list field

I have a content type which has a select list field. I created a view where select list field was added under filter criteria. How can I remove the arrows/slider?
0
votes
1answer
10 views

Creating 'index' content views for L1-LX within a taxonomy

Note: This is a follow-on question from Creating a displayable 'index' of content nodes within a path Ok, starting to find my feet again within Drupal, and still getting up to speed with views. What ...
0
votes
0answers
32 views

How can I display a block to public?

I created a view block and placed it in the content region. There is no role restriction. That means all users can view the block. However, only authenticated users can view the block. I am not sure ...
-4
votes
1answer
25 views

How to create view texonomy matching to user profile texonomy

I have 3 levels in user profile fresher/prathama/prarambhik. I have craeted texonomy fresher/prathama/prarambhik. In drupal quiz module diiffrentiate questions using texonomy fresher/prathama/...
0
votes
1answer
6 views

How do you get Product Variation Type fields and display modes to show up when displaying Products in a View?

I've created a Product Variation Type for all my products, all of which have the following custom fields: Display Title, Subtitle, and Top Rated Product? (boolean checkbox): When setting up a View to ...
0
votes
0answers
16 views

How to alter rendered and aggregated views values?

I would like to do math on counts of two aggregated fields. In views post render the final results are located under $view->style_plugin->rendered_fields[0] and they are generated by views aggregator ...
0
votes
1answer
48 views

How to get fields in StylePluginBase

i´m building a new nap view style. I get the map shown correctly, but only without the data of the view :-(. class OpenlayersViews extends StylePluginBase { /** * Whether the display allows the ...
0
votes
0answers
22 views

Drupal7 - In Edit View adding a field, no “Configure: field” popup and field not shown in “Fields” section

In View panel, adding fields not showing up "Configure: field" and the field is not added. i.e. The red-boxed is not shown as below (see step2): Normal behavior step1: Normal behavior step2: The ...
0
votes
0answers
12 views

What is the best way to create uneven grids

I have a a 2-column grid view. They are equally sized but I thought that it would be nice to make one of them 1/3 and other 2/3 on each row. Just like in the example image. What would be the best way ...
0
votes
0answers
31 views

Programmatically get View Field rendered HTML

I need to programmatically read a field output from a View in Drupal 8. The field output has been rewritten with extra text and twig. My code: foreach($view->result as $row){ foreach ($view-&...
-1
votes
0answers
21 views

Schema error when saving a Search API Solr results view

I have a pretty complex view set up (a view with 4 attachments). I'm trying to add a filter to one of the attachments but when I save, I get this error. InvalidArgumentException: The configuration ...
0
votes
0answers
25 views

Issue with Views Contextual Filter using Taxonomy Term Name

I've run into an issue with views using contextual filters that feels like a bug but usually when I encounter what appears to be a bug it's because I'm doing something wrong so I wanted to see what ...
0
votes
0answers
6 views

Using views_xml_backend to display an RSS feed with HTML?

The RSS feed has the description field with encoded HTML in it. How do I un-encode the HTML. enable views_xml_backend Create a view of type XML In the view under advanced edit the query parameters ...
0
votes
0answers
32 views

Ajax implementation in exposed forms

We use to add property '#ajax' to a form element in our form array, to trigger an Ajax response and it works fine except in case of views exposed forms. This doesn't work in case of views exposed ...
1
vote
0answers
27 views

Have Value Selected but Label Showing in Views Display Plugin

I am working on a custom Display plugin for Views. In my buildOptionsForm() method, I have the following: $form['inherit_yaxis'] = [ '#title' => $this->t('The title'), '#type' => 'radios'...
0
votes
1answer
24 views

Raw Field Value in Views

We have a content type that has a Video Embed Field. In this field, we simply enter youtube or Vimeo url. In a custom view we are trying to display the raw value of the field. Since this is a Video ...
0
votes
0answers
11 views

How can I hide a private field from a specific role in webform?

I have 2 roles: wholesaler and owner. i have a webform called "deals". This form has a private field which should be visible to owner only. But this private field still shows to wholesaler role as ...
0
votes
1answer
18 views

Issue with taxonomy term search in Views

I have a View that uses "Search Terms" to search nodes of the content type "Products". I added a new taxonomy term field to the Product nodes, and then added that field to the View. When I use the ...
0
votes
2answers
29 views

How to display article metadata in a custom div?

Metadata (publication date, author's name...) is normally displayed in the "Content" part between the "articles" tags. I have created a new region "titre d'article" in which I would like them to be ...
0
votes
0answers
17 views

Views not showing some content

I have the following code in the footer to a view: <script src="https://mysite/sites/all/libraries/js/listnav/jquery-tablenav.js"></script> <script type = "text/javascript"> (...
0
votes
0answers
13 views

How to create a views contextual filter of the current domain

I'm using the domain module, but have not enabled the submodule 'domain access' because I'm already using open social group access, and want to prevent performance issues. I only need to filter views ...