Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [views]

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

Filter by
Sorted by
Tagged with
-1 votes
1 answer
24 views

CSV Download not working within Views Bulk Operation's Action extension function

I am not getting any errors in the logs, and the CSV doesn't seem to download. I am trying to get the selected data from Views Bulk Operations into a csv that downloads upon the associated selected ...
Guybrush Threepwood's user avatar
-3 votes
0 answers
21 views

View presentation format not executed

I have created universities (with their different fields) and subjects (with their different fields as well, in addition to a reference field for university). I have a view to show the universities ...
Óscar 's user avatar
0 votes
1 answer
19 views

Change the fields that do the sorting of the view content on exposed field click

I need to sort indexed contents by "modification date" per default. An exposed button "Relevance" would sort by relevance instead. views sort options does not seem to allow that. ...
Matoeil's user avatar
  • 3,415
0 votes
0 answers
13 views

Sort by date after date_modify

Using Views > fields I want to sort 'date_modify' result. The statement(code) below provides all the dates (unsorted), nicely, however Views > Sort Criteria doesn't work since it seems to only ...
Systemlord's user avatar
0 votes
0 answers
11 views

How to add a filter form in a view to filter entries based on selected entries from a related content type?

I have created several filter forms for content types to filter content based on its taxonomies. In the View Filter Criteria section I can choose a custom field from the content type which relates to ...
Laurence Cope's user avatar
0 votes
0 answers
15 views

in view path, can I replace tid with token:name

What I have, the view path bild the path with token id's. such like: excample.com/view?token=555 maybe with [node:field_token:entity:name] or {{ node:field_token:entity:name }} ? with ...
Hartmut Theis's user avatar
0 votes
0 answers
19 views

How to create a view with filters using data from an api?

We have a multisite setup and need to share taxonomy data from one site to all of the other sites. I have created a REST Export view on the site that has the taxonomy data. The next thing I've done is ...
Jordan's user avatar
  • 49
-1 votes
0 answers
19 views

sort by relevance in search api index views

When adding an exposed sort by relevance in a search api view index : The select option has only the option "sort by relevance". What is the use of that exposed sort then ? Should there not ...
Matoeil's user avatar
  • 3,415
1 vote
0 answers
30 views

How add a "Raw value" field on views?

I'm on Drupal 10.2.x and editing the view content. I'm using the contrib module views_cm_current_state. The module implements hook_views_data() to add, for what I understand, a new field. The field ...
Giuseppe's user avatar
  • 971
0 votes
1 answer
25 views

Passing data to a field formatter via views with referenced fields?

In creating a 'traffic light' field formatter, how to access views data stored in an entity 2 levels up? The traffic light is 'green' if speed is 'good'. There is a radar entity which has the location ...
Interlated's user avatar
  • 1,423
0 votes
0 answers
8 views

Correct price not reflected based on product variation when markeplace page loaded

I am stucked with this issue that correct price is not loaded based on product variation setup in drupal 9.5. Here is my product variation. And here is my marketplace product price and variation ...
Lal Kumar Rai's user avatar
1 vote
0 answers
24 views

Displaying Next Element as View Block based on Order ID Field

I have content type in Drupal 10 called "Tutorials". This content type has an integer field named "Order ID" to sort the entries ascending in a normal view. In the node template ...
meder's user avatar
  • 11
0 votes
0 answers
22 views

A little question about Webform Views Integration

Have set up the Webform module with Webform Views Integration. Created an additional view for webform submissions via cloning and alteration of 'Embed:Default', applied there a function from Views ...
Dre's user avatar
  • 1
0 votes
0 answers
72 views

How to implement a taxonomy/entity reference Search API Processor?

I have two fields (field_contributing_author, field_attorneys more details on the code block below, they are commented there) that I'm interested, one is a taxonomy and the other an entity reference. ...
Alimba's user avatar
  • 117
0 votes
0 answers
14 views

How do I call a custom serializer from a _node_update hook?

We inherited a legacy Drupal project that has an entity called Products. We expose an API endpoint that returns all Products as JSON. Our project uses a module that contains a custom serializer: // ...
RobertAKARobin's user avatar
0 votes
0 answers
9 views

How can I manipulate an autocomplete text field exposed form filter to be a select list? [duplicate]

I have been trying to just use a form alter hook with code like this if ($form['#id'] == 'views-exposed-form-my-form') { $nids = \Drupal::entityQuery('node') ->accessCheck(FALSE) -&...
Steve's user avatar
  • 351
0 votes
0 answers
13 views

Ajax Views DOM ID generation to fix Media Library Ajax View Exposed Form behaviours not getting rebound

I have a view with an exposed form with ajax enabled (is is media_library) I click apply filters. An ajax request is triggered and ViewAjaxController->ajaxView() runs. This method has a comment ...
Felix Eve's user avatar
  • 6,463
0 votes
0 answers
17 views

Bibcite references from migration shows HTML tags in abstracts and notes, how to strip them?

After a migration using the bibcite_migrate module, I retrieved my 2700+ references from a D7 site and the Bibliography module. Unfortunately, HTML tags are visible on all abstracts and notes and they ...
Toki's user avatar
  • 424
0 votes
0 answers
30 views

How do I display the total number of items in a view?

I have a website that works with Drupal 10.2.5 I have 200 articles published. I created a views block with the last 5 articles. I therefore limit the number of elements to 5. I want to display in the ...
marsouin's user avatar
0 votes
0 answers
6 views

Deactivate "tabledrag", another item, order for comments

I need a very simple forum function for my site and I am currently trying out the forum module in Drupal Core. My Drupal is version 10.1.8. But now there are the buttons "preview" and "...
Bavramor's user avatar
0 votes
0 answers
12 views

Show the value of users selected results from views exposed filter

I would like to show the value of a user-selected option similar to this question I found here: Views exposed filters - how to show "You searched for [exposed filters]" above results? Their ...
user3038672's user avatar
0 votes
0 answers
52 views

Replacing pattern in Views stripped some HTML tags

Some of my body fields contain embedded code, like iFrame. I use the Views to rewrite the output for a better layout and style. However, the iFrame tag got stripped when replacement patterns were used ...
CocoSkin's user avatar
  • 891
0 votes
0 answers
23 views

How to retrieve taxonomy term name in url instead of id in a drupal view?

I'm currently working on Drupal 10 and utilizing Views with filter criteria. However, when I apply filters to my view, it shows the ID of the taxonomy term instead of its name. How can I ensure that ...
lucia's user avatar
  • 1
0 votes
0 answers
21 views

Inline Editing Weight Field on admin view

I am working on a Drupal 10 site and and I have a built an admin view that has 2 fields. Node title and Weight. I would like to be able to on that view edit the weight inline on each node and save it. ...
ThankYouNeco's user avatar
0 votes
0 answers
22 views

Field of type media with two values display inline

I have two entities 1-is a media field (of type image) with 2 allowed values. 2-is a date field (date only) with 2 allowed values When I uses these fields in a view (Table Format) the media fields are ...
Cliff's user avatar
  • 1
0 votes
0 answers
16 views

Views Data export xml

Drupal 10.2.4 php - 8.2.16 I have created a Views Data export xml but the link to the xml file only works when I am logged in. When I'm not logged in the link works, but the xml file is empty. How can ...
Mihail Novak's user avatar
0 votes
0 answers
74 views

How to speed up View render time in Drupal Views?

I have pretty big View which returns hundreds of rows and I am struggling with View render time. Stats are as follow: Query build time: 44.69 ms Query execution time: 111.52 ms View render time: 6978....
Lub's user avatar
  • 61
0 votes
0 answers
16 views

Flagging users of another role to not see me in a user listing

I am looking for a way to achieve this: Everything happens with logged in users User with Role A can flag users of Role B User with Role B can see a views list of users with Role A EXCLUDING the users ...
Matthias's user avatar
0 votes
0 answers
29 views

Poll as "Rendered Entity" field is not displaying in views

I have integrated Poll as a field in Content type,let be "article'.Poll is displayed as rendered entity wherever required. Now I have created a view listing all articles.Poll is also added and ...
Fatima's user avatar
  • 1
0 votes
0 answers
20 views

Is there a method to get a view to provide multiple tags in a CSV export within one column rather than mulitple rows?

I have a D7 site that is being recreated. I need to generate a CSV of particular fields used in its numerous content types. There are 5 taxonomy reference fields. I have created a relationship for ...
JAyenGreen's user avatar
0 votes
0 answers
45 views

Views Menu Tabs: primary and secondary tabs?

I'm moving a site from Drupal 7 to Drupal 9/10. In Drupal 7, there's a view with multiple page displays, set up like this: Tab name Menu setting Path All No menu events/list Summer Default menu tab ...
Kristi Wachter's user avatar
0 votes
1 answer
91 views

How to disable cache in my custom contextual filter code?

I have created a custom module for authentication by using access_token. The authentication is working fine. So, I thought to create a custom contextual filter and use that as a filter by access token....
Selvakumar Eswaran's user avatar
0 votes
0 answers
12 views

Field view in content type or header custom field

I have a need, it is to create a page with a list of contents but also custom fields in introduction, such as a title, text and an image to display on the page. I am exploring several solutions but I ...
Devanbnd's user avatar
0 votes
0 answers
33 views

Drupal View: show ALL users with node count of a content type

I need to display a list of users with a count of nodes they created of a particular type (say Article) like follows. I could almost achieve that using "Views Aggregation" by the following ...
Krishna Mohan's user avatar
0 votes
0 answers
25 views

How to create a view that displays published version or latest revision

I need to create a REST Export view which can display 1 revision of each item of content of a particular content type. I need to be able to change which revision is displayed between the current ...
Steve's user avatar
  • 1
0 votes
0 answers
25 views

ECA: Cron Event - View - Message per Mail

ECA: Cron Event - View - Message per Mail I would like to send a notification by e-mail to a user when a certain event occurs. The event is then a view that outputs a content, this content is ...
Bavramor's user avatar
0 votes
1 answer
38 views

List (distinct) users in order of their most recently published node

I'm trying to list 8 users (name and profile image) starting with the one who created the newest node and follow with the rest of users in (descending) order of their last created node. I got to ...
hip's user avatar
  • 15
-1 votes
1 answer
28 views

How to produce GeoJSON from a set of Geofields without a single point error?

I'm getting an error from a geoJSON view Exception: Cannot construct a LineString with a single point in LineString->__construct() (line 18 of /vendor/itamair/geophp/lib/geometry/LineString.class....
Interlated's user avatar
  • 1,423
0 votes
0 answers
25 views

Design settings for "grouped" field

I group by a field in a table. The grouping is correct. The field content is inserted as the respective heading. Is it possible to customize this output in the design? Customize HTML code with the ...
Frank Giesecke's user avatar
0 votes
0 answers
19 views

How do I plot content created per month on a column chart?

I am trying to create a column chart that plots the amount of Change Requests (custom content type) created per month, and how many of those Change Requests are successful. The success is indicated by ...
GeorgeCiesinski's user avatar
0 votes
1 answer
39 views

how to prevent Quoted Orders from appear under both Quoted and Completed sections for the Orders page; Completed Orders also appear under both

Orders are showing up in both COMPLETED and QUOTED.. my screenshot here shows only Quoted Order, yet they appear for BOTH: (please note the first screenshot does not feature any fully completed ...
allenski's user avatar
  • 101
0 votes
0 answers
42 views

How can i prepopulate a webform field before being loaded

I have a webform field called company name and i want that when the webform is opened it has a prepopulated value i want to do it from code because i will have a dynamic variable. THis is the code i ...
joel's user avatar
  • 1
0 votes
0 answers
11 views

How to create view of files upladed to webform with appropriate webform fields data?

In my webform user can attach multiple files. What I am struggling with is creating a view of files (so line per file, not line per webform submission) with webform files and appropriate webform data. ...
petiar's user avatar
  • 376
0 votes
0 answers
31 views

Not able to drop external event into the calendar [duplicate]

I am using fullcalendar_view module and not able to drop external event into the calendar (function ($, Drupal, drupalSettings) { Drupal.behaviors.clipboard = { attach: function (context, ...
user avatar
0 votes
0 answers
20 views

Displaying content in draft mode

A view is set up to display a node's contents. The node contains workflow moderation, like the published status. To make a new change in the content and to preview it, the content is set to draft mode....
jojan's user avatar
  • 1
0 votes
0 answers
22 views

Views Grouped by Row & Column

In Views (Drupal 9), how can I have the first group header be the row header and the second group header be a column? Specifically, I'm looking for functionality similar to this module (only D7-dev) ...
Chris Happy's user avatar
  • 1,897
0 votes
0 answers
132 views

How to implement external event drag and drop including node creation in the Fullcalendar View module?

I am using Fullcalendar View module and working on External Event Dragging i am able to drag external event but not able to drop it in calander, i've researched about it a lot but didn't find any ...
user avatar
0 votes
1 answer
104 views

Limit facets (exposed filters) based on contextual filters in a view

I'm trying to limit terms in a view facet (exposed filter) based on a contextual filter. I have products with a 'category/type' taxonomy term. The terms are 2-level, looking roughly like this: ...
Mark's user avatar
  • 133
0 votes
1 answer
95 views

Arrange images and text side-by-side

I've created a view for selected articles to be featured on the homepage. Each article includes the following fields: image, title, body. Currently, these elements are arranged vertically, but I aim ...
radekjoachim's user avatar
0 votes
0 answers
56 views

Is possible to replace a token inside a view field?

I'm on D10.1.x. I need to add a current-user:xx token inside a column of a view. I've seen that by default, the token replacement doesn't work, e.g. if I use [current-user:mail, the token is not ...
Giuseppe's user avatar
  • 971

1
2 3 4 5
304