Questions tagged [views]

The Views module allows creating lists of entities with a flexible query builder.

Filter by
Sorted by
Tagged with
0
votes
1answer
39 views

Is it possible to render a View based on the Content language?

Drupal supports the concept of Interface Language and Content Language. I (and every client I have ever asked) seem to have a different opinion of what is "content" and what is "...
0
votes
1answer
472 views

Is it possible that these modules conflict with each other?

I have a view set up with the format Views Accordion. I have installed the module draggable views so that I can order each node as I like whenever I add a new node to the view. I'm finding that the ...
0
votes
0answers
14 views

How to correctly add a slideshow to Content type using a module paragraphs?

I created a Content type - News. Then using modules View, Slick Carousel, Slick View I displayed my news in a block as a slideshow But now I need to add a slideshow to a paragraph and display it on ...
-2
votes
0answers
18 views

Past events showing in Events instead of being automatically moved to Past Events? [closed]

Why are events that occurred in the past showing up on Events instead of being automatically moved to Past Events? Once the event date passes, can they be set to be removed from the Events page ...
1
vote
1answer
347 views

Clear views cache on specific node

I want to clear the cache of specific node's view. In my database in cache_views_data table I found the cid of my view and the format is like "views_name:display:hash" but I cannot find this hash ...
0
votes
0answers
9 views

Nested views ajax pagination

I am using Drupal 9 and views_field_view to embed a "child" view within a "parent" view. Because there are multiple rows in the parent view, I end up with multiple of the same &...
1
vote
1answer
1k views

How to print a taxonomy term's field value alongside a Views grouping header?

In Drupal 8.4.4 I have a "Living Things" taxonomy vocabulary. One field on the terms in the vocabulary is "Most Common Name", with machine name field_most_common_name. On my "Animalia" term its value ...
0
votes
1answer
496 views

Hide the "view exposed filter" form or reload the page after submit the form?

I am using view exposed filter on a view display as "block". The block is added to dashboard. I added a second function to "Apply" button using hook_form_alter. I want to hide the expose form of view ...
0
votes
0answers
6 views

VBO custom actions - reset after action

I have created two VBO custom action buttons. One prints orders, the other updates them. Clicking one disables it and the other until the page reloads (losing all checked orders). How can I have the ...
1
vote
1answer
8k views

How to display menu in view Block in drupal 7

I am creating a website in which i am trying to display the submenu into view block . how can i do this. menu is Like A -B-c D -E-F I have to display in block view like This is view block B C | ...
0
votes
1answer
520 views

Pagination for Views RSS

I'm using Views RSS module to generate a custom RSS feed. I want to be able to limit the results by adding ?offset=50&limit=50 . How could I achieve that? Is there any Views plugin I could use? ...
0
votes
1answer
52 views

How do I display nodes in a map block and in the page content, with shared filters?

I am using the Olivero theme on my Drupal 9 site and building a map with the Geolocation module. I want to create a Views to display these two displays of the same nodes : one display which is a map (...
0
votes
1answer
516 views

Views archive page showing year and months of article content type

I am trying to build a view page that shows archives (content type is article) only by dates: year (e.g.2016) february (post count) june (post count) etc .. year (e.g. 2017) march (post count) june (...
2
votes
2answers
427 views

How can I set a view not to use the path previously set and be able to save the view?

I have some views I am not currently using. I want to disable the path, or leave it as No path is set. All I get is the following message. Display "VIEW" uses a path but the path is ...
3
votes
1answer
443 views

How to fallback to default language when listing nodes in a view if no translation is available

I have a list of projects, mostly in english, but some are translated in French. When i visit the French version of my website, how can I list all projects that are translated in French and if no ...
1
vote
1answer
384 views

On View Rewrite Results I don't see additional options like Add Read More button when checked "Trim this field to a maximum length"

Can anyone help me? Because earlier this options were displayed when I checked "Trim this field to a maximum length". May be it depends on some settings? I can't upload image to show you what I mean. ...
1
vote
1answer
378 views

User reference and Views 3 and Panels 3

i have the follow installation: Drupal 7.12 Views 3 Panels 3 I have an content type with the follow fields: User name (textfield) Job Function (textfield) User reference (Reference Field) I filled ...
0
votes
2answers
458 views

Filters as rewrite results link path parameters

I am currently using this approach to link lists view's rows to detail pages in Drupal 8 I would like to pass the entity title of the row to the receiving page and use that to select view blocks ...
0
votes
1answer
572 views

Get the views field value

How to get the views field value and make a condition base on that field. Let say may views field is 'field_state' Example below: function my_module_views_pre_render(ViewExecutable $view) { //...
2
votes
2answers
966 views

How can I display all levels in Simple hierarchical select

I created select hierarchy ( taxonomy with 3 level), but in default it shows only one level , how can I display all 3 level in default page? : -Any- + -Any- + -Any- I do not want it to automatically ...
1
vote
1answer
542 views

How to alter node body content through Views pre render hook?

I have build the view to display node title and node body also I have applied combined fields filter which searches the keyword in title and body and returns the results. While rendering the contents ...
2
votes
1answer
4k views

How do I add a validation handler to a specific exposed filter form?

I want to add a custom validation handler to the exposed filter form that is part of a view. I am not able to target that specific exposed filter form: The validation handler is added to other forms ...
0
votes
1answer
370 views

Views Exposed Filter Sort on Entity based on Term Reference Field from Entity Reference Relationship

I've been playing around with Views exposed filters on an entity. I have so far been able to create a relationship to another entity through an Entity Reference, and exposed the fields belonging to ...
0
votes
1answer
430 views

showing translation of the related node in view

I have a node type called Match. Each match have two entity reference fields that points to two nodes that has the type of Team. I built a view and use the relationship to show the matches and the ...
0
votes
1answer
538 views

Get the user's current language code

How can I get the user's current language code in a view as a raw value, for example en or fr-ca? This isn't for filtering content. I need the raw value of the users' current language to pass into a ...
0
votes
1answer
621 views

An error occured while attempting to process /ajax/ajax_facets/refresh:$.blockUI is not a function

Ajax facets work but I get an error "An error occured while attempting to process /ajax/ajax_facets/refresh:$.blockUI is not a function" when I click on ajax links with checkboxes for the facets for ...
0
votes
0answers
21 views

How do I pass a variable to a views-view-fields.html.twig template file programmatically?

I would like to pass a variable (Drupal 9) to a 'views-view-fields--view.html.twig' template file so that in the template file itself I can test whether the variable is defined. I tried using the ...
3
votes
1answer
402 views

Some fields are not sorting properly in view

I'm trying to create a directory list in view. But some of the fields are not properly sorting. See the below image for my view configuration. And the output of the view. Update: Style setting ...
0
votes
1answer
393 views

File viewer with search filter by category and sub categories Drupal 7

I want to create a site running locally(localhost) which views files that are uploaded by authorized user. Using search filter by category and sub categories, all ebooks that are included in that sub ...
0
votes
1answer
495 views

Get file ID and path to use in View template

I am working in my Row style template (views-view-fields--MYVIEW--block-1.tpl.php). I need to get the file ID and path of an image. The image field is a multi field, so I need to get all of the images ...
0
votes
1answer
46 views

How to prevend duplicates of content in a view?

On a multilingual drupal website (version 9.2.10) A block duplicates content on the landing page when 2 of more languages are enabled. The block shows random published content for a custom content ...
0
votes
1answer
511 views

How to set the link in a view slideshow?

Currently, I'm creating a xyz resort website. In my home page, I implemented a slideshow by using views. I want the slideshow to be clickable: When I click on to the resort image in slideshow it ...
0
votes
1answer
575 views

Views Link Display Settings Is Not Accepting External URL

I want to add an external URL to the Views More Link Display Settings. It is also mentioned in the guide lines as well ("A Drupal path or external URL the more link will point to. Note that this will ...
0
votes
1answer
422 views

How to execute a query taken from views in custom module

Please don't suggest query builder, this is the single query I need run from my custom module with passing arguments. I create a View with desire fields and copy/past the query in phpMyAdmin the ...
0
votes
1answer
520 views

rewriting results in view: trim from the back

I am working on Drupal 7 Omega Subtheme, Panels Views. In one of my views I have a path field which displays the whole url and I need only the last 6 characters (6 digits, to be precise. Also, if it ...
0
votes
2answers
1k views

Grouping Exposed Filters

I am working with the module Better Exposed Filters (BEF) within my view. I have about 12 exposed filters, some of theme are select lists and some are range sliders. Some filters thematically belong ...
0
votes
1answer
446 views

Calculate values from multiple content items

I have a Drupal 7 website that will be used to track automobiles in a fleet, as well as their engines and a few other items. Regarding the engines, I will be tracking the number of hours the engine is ...
0
votes
1answer
350 views

Views Pager, Can I change Items per page dynamically as provided input?

Is it possible to send Items per page limit in query string of view page url and get records according to that?
1
vote
1answer
728 views

Alter view with hook_views_post_render and save results to cache

How can I alter the results of a view with hook_views_post_render but save the altered output to cache, in order to avoid the overhead of altering the results on every request? The ideal scanario ...
1
vote
1answer
452 views

Is it possible to get the last number of a views pager to display after and before the elipses?

I'm trying to create a custom pager similar to the Amazon pager: < 1 2 3 4 ... 82 > and after a certain point: < 1 ... 7 8 9 10 ... 82 > But, I cant figure out how to display the last ...
0
votes
1answer
460 views

Add cardinality_unlimited taxonomy reference to custom entity

Okay, so I'm getting an error that I think may be a Views bug, but I don't have enough knowledge about Views & SQL right now to be sure about that. Here's the hook I'm using to install the new ...
0
votes
0answers
36 views

How do I add the news that I created earlier to the slideshow using the Paragraphs module?

I created Content type - News. And added ten news. Using the View module, I displayed them on the /news page. I need to make a slideshow with 3 selected news on the frontpage of the site using the ...
0
votes
1answer
705 views

Use contextual filter global null to pass values to override field result

I come again with new question about Drupal Views and i hope you can help and explain me how to achieve this, I made a page view to display all my content (this works fine) with the following path: /...
-1
votes
1answer
28 views

Read view field value in VBO action [closed]

I have a view grid that has custom actions to perform based on selected grid row. To read the view fields from the grid dpm-ed the below command: dpm($this->view->result); The above command ...
0
votes
1answer
432 views

Set node to flagged by default

I'm using flags on my site as a way of filtering content through views, when a user views a certain node content type, I have a rule setup which resets the value of my flag and sets it against that ...
0
votes
0answers
52 views
+50

Geofield -> Filter points inside a polygon

I have two content types. Each of them has a Geofield field: A -> It has a Geofield of type polygon B -> It has a Geofield of type point I would like to build a view to show all B nodes that are ...
1
vote
3answers
862 views

Views, group by first letter as rest export (Alphabet/Glossary listing?)

Is there a way to group results by the first letter of their title in a REST export per the screenshot? My first thought would be perhaps extending Serializer to process the results, at the expense ...
0
votes
2answers
453 views

How to programmatically add a link to an image field in a view

I have a view with an image field and other fields, and I need to link the rendered image, not the content which is one of the configuration choice, but on another computed filtered view. I think that ...
-2
votes
0answers
17 views

How to get form data from database in drupal [closed]

I have created a form and saved it. Not I need to fetched all the fields of table and show those somewhere else.
0
votes
0answers
15 views

drupal view how can i filter results for certain node ids

i have created a view via the gui. I have tried to filter on the nodes i want, either with a normal filter and an or, and adding a few of them in a contextual filter. I face two issues: 1. i cannot ...

1
2 3 4 5
298