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

Views Custom Field Handlers tokens

I am using simple views custom field handler. And I would like to make list of custom tokens for this $data array I have. How could I do that? class custom_views_handler_field_hostname extends ...
0
votes
2answers
463 views

Need to display fields in a different format

I have following fields in my content type: Title: [some value] Year: [2011,2012,2013,2014,2014,2016] Volume: [01,02,03,04,05] Issue: [1,2,3,4,5] Description: [some text] And I want a output display ...
0
votes
1answer
30 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 ...
4
votes
2answers
525 views

Contextual filter with hierarchical taxonomy terms

Using contextual filters, I have created a view which shows a page of users at us/california, based on a taxonomy I have made of locations. This taxonomy is hierarchical, though, so when the user ...
-1
votes
0answers
5 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 ...
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
1answer
509 views

How to filter a View by Year and Month with Summaries for each one

or How to remove the exception parameter of a View's contextual filter Hi, In Drupal 7 I have a View with two contextual filters (date field): /view-url/YEAR/MONTH When YEAR is the first argument ...
0
votes
1answer
476 views

Multiple pagers in one page

I have a view with two separate displays that is used in one single page. Both the displays are using a pager. To get things working I set a unique id for each pager under pager options. This works ...
-4
votes
0answers
29 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
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
1answer
483 views

Use image from taxonomy term as exposed filter option

I created a view which has an exposed filter for taxonomy terms. Now the next step is to theme the options. I tried the module "Better exposed Filters" but I wasn't satisfied. I would like to have ...
-2
votes
1answer
23 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. ...
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 ...
0
votes
1answer
351 views

How do I programmatically render a view that has exposed filters?

I can call a view with contextual filters without any problem, but when I add exposed filter value $view->setExposedInput to the call, I just does not work, the exposed value is not applied and being ...
1
vote
1answer
495 views

Views Infinite Scroll and back button issue

I am using Views Infinite scroll module, Drupal 7. When i click on an item and go to next page and then click Browser back button, it takes me back to the start of the page. When i click browser back ...
-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 ...
0
votes
3answers
35 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 ...
-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
2answers
726 views

Making a custom views field handler click sortable (getting an error when clicked)

When I make my custom handler click sortable and subsequently click the label in the table heading of the view I get the following error: SQLSTATE[42S22]: Column not found: 1054 Unknown column '...
0
votes
1answer
698 views

Pagination isn't working

I have a homepage view called FrontPage. Currently, it shows the pagination link like "1, 2, 3 Next->" as it should; when I click on Next, it goes to http://example.com, not http://example.com/page/1/...
1
vote
2answers
511 views

Views merge rows: merge uniques values and show the first one

I'm using Views merge rows to grouping rows by some fields, It worked good for me, but in some fields I want to show just the first filled value that means: merge uniques values+use the first value. ...
0
votes
2answers
568 views

Entity Reference multi value fields, filter on parent

I have two content types: Family and Members. Family content type has an entity reference field of type Member and can have unlimited values(multiple values). My question is: How to create a view that ...
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 ...
0
votes
1answer
411 views

How do I programmatically set contextual filters?

I need to set a contextual filter programmatically and almost every view I have will have this filter. However, some wont and will have other contextual filters instead. I have tried following the ...
7
votes
7answers
6k views

Sortable table: secondary sort

I have a view (Drupal 6 / Views 2, but I think this may apply to other versions as well) displayed as a sortable table. I can add fixed sort criteria as you can with all views, but once the table is ...
2
votes
1answer
515 views

'Views Field' issue in NO RESULTS BEHAVIOR - Hide if empty not working

'Hide if empty' configuration of views is not working properly as a result all the empty fields are showing. Is there any work around to force fully hide empty fields in the views result (Page/block) ...
0
votes
1answer
1k views

Alter a query using <module>_views_query_alter to filter a view by month

I successfully created a view gathering, let's say, events, sorted by date. I also created exposed filters so one could filter the view. I'm attempting to create another exposed filter that would ...
7
votes
1answer
467 views

Order list: Pay unpaid invoices

I have created some extra statuses: Paid and Unpaid. Now they got the functionality and react on the transaction balance perfectly fine. However, on the user site, it is kind of a dumb thing. Even ...
-1
votes
1answer
533 views

How to link block and view to basic page

Please tell me how to link a block and view with to a basic page. for example I want to add a block for featured service and assign with view, my problem is how to assign with a basic page.
3
votes
1answer
525 views

Views Load More: Showing X number of item initially

I have a view which shows 6 items per page using Views Load More (Ajax). However what I would like to do is, on the very first page I would like to show 6 items and when clicked on Load More button it ...
1
vote
2answers
593 views

Display HTML field

I am using Views Database Connector to display safe data from external database in Drupal 8 within views. Some of the fields include simple html like a list which views encodes in html entities. I am ...
0
votes
1answer
340 views

Inheritance value from the exposed filter

I've got content-type with two double-valued fields field_price1 and field_price2. There are interior names. I've also got page view (its machine name is search) displaying contents. I've got search ...
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'] = ...
0
votes
0answers
7 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
1answer
340 views

How to create a Views based chart with time intervals and using Highcharts?

Is there any change to do time interval to Highcharts -module ? Such as in this example: http://www.highcharts.com/stock/demo/compare Or do I need to use different module for that?
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
1answer
400 views

Views block template print individual field from content

I created a view of paragraphs and I passed the parent ID as the contextual filter using a relationship to the content that use the field that reference the paragraph. I can see the data been ...
1
vote
2answers
488 views

Views Accordion - group by taxonomy headers

Not sure why I can't do this as it sounds simple, I have: A content type called 'RSS FEEDS' A vocabulary called 'Publications' within this I have 3 terms which are 1) NY Times 2) BBC 3) National ...
0
votes
0answers
12 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). ...
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
1answer
345 views

Change view format programmatically in Drupal 8

How to change view format progammtically using "hook_views_pre_render" in Drupal 8 or some another method ?
-1
votes
0answers
22 views

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

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
1answer
991 views

Related content in a view using entity reference

I've browsed through (and tested) every solution I could find here to this seemingly simple challenge. I've got multiple content types (fx. News, Releases, Events, Videos etc.) that are referencing ...
-3
votes
0answers
17 views

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

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 ...
2
votes
1answer
341 views

Connect two content types via taxonomy

Currently I have a view called authors_under_book. When I enter the ID of a book, the view should show me the author's properties. I have asked on Drupal.org, but I didn't get any solution. How can ...
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 ...
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
1answer
43 views

Get taxonomy term ID from standard URL and then pass it to a View as a contextual filter

is a simple question, I whant get the term ID (tid) from standard drupal taxonomy url taxonomy/term/167 ou 167 is my tid and use as argument on views. I found this code to get the tid: $term_path=...
1
vote
4answers
5k views

Views: URL Alias as a field

How do I get the URL alias of a node in views. Here is a previous question, Get a url alias as a field value? However, the Content: Link field outputs something along the lines of <a href="url"&...