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

I get a block that doesn't change on other pages

I have an issue with the contextual filters when I use Content: ID. On the site I get a repetitive, when there are many more recipes. The block remains the same, with two recipes, which is fine, but ...
0
votes
2answers
444 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 ...
2
votes
0answers
10 views

How to get content url in views-view-unformatted block template

In Drupal 8, I created template for solr search view views-view-unformatted--solr_search_content--block.html.twig I am trying to print the content link by {{ row.content['#view'].style_plugin....
0
votes
0answers
22 views

Can I download images from a view? [closed]

I created a Photo Gallery from photos attached to different uploaded nodes. The uploaded photos have been saved in the directory sites/default/files. I created a view with filters and I show the ...
0
votes
1answer
471 views

No results behavior in Views not working when referencing another field after cache clear

My Setup: I am using Drupal 7.41 and Views / Views UI 3.11. I have a taxonomy named sermon series that includes a field called series image. I have a content type called sermons that has an image ...
0
votes
1answer
14 views

Display Node Local Tasks Menu on View

I have a view that shows registrations for an Event (Content Type). This tab is shown in the /node/{node}/edit: This registrations tab refers to the view, which I have inserted in the routing.yml: ...
0
votes
1answer
40 views
+50

Set a Data Value from Text field to Term Reference field

Node has two fields: Text field Term reference field (autocomplete?) The Text field is old and already has 500 nodes with 500 unique values. The Term reference field is new and needs to contain same ...
0
votes
0answers
13 views

View with multiple blocks, how to specify which is shown?

I have a view that is placed as a block below my main content. Within that view I have block "displays". each having a different contextual filter for their id from url. The problem is when ...
2
votes
2answers
942 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 ...
3
votes
1answer
435 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 ...
2
votes
1answer
424 views

Change search results pager to mini pager?

How to change search result's pager to mini pager. I want to change default pager to mini pager in that search result page. Please help me. Thank you.
0
votes
1answer
437 views

Get content types field in another content type with the entity reference relationship

I have two content types. Person and Projects. I use a entity reference for the persons name on the project node so people can select the person that is involved in the project. Now using that ...
0
votes
1answer
57 views

Display Block to retrieve information from Order Item's Product Variant and display rating & review inside product page

I am working on an e-commerce website development. I have the conventional Products -> Product Variants which goes through Order and payment gateway workflow. However, there is something different ...
2
votes
1answer
7k views

Show exposed filter by logged in user in drupal 8 [closed]

I have a view that in that view I set up 3 exposed filter, all filtering working fine. First: Filter by contact first name Second: Filter by Project name Third: Filter by Contact region/location The ...
0
votes
0answers
12 views

Sql query in order of closest to farthest and then in order of most recent to oldest [closed]

How to order set of data with a date field? I have table of appointments that has the field_date_and_time for date. I gonna to sort data according to this field. But it would ideally sort all future ...
0
votes
1answer
369 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 ...
1
vote
1answer
504 views

How do I create a custom view filter for an existing field?

I ran into a problem with creating a custom view filter for an existing field for Drupal 8. I mean a filter not for fields like "nid", "title" and so on, but for fields, which were named CCK-fields ...
0
votes
1answer
440 views

Taxonomy terms with associated nodes: display page by page navigation in node page?

Hi i have a content type called Product and have fields(title,description,code,image) and also have vocabulary categories like below formate parent term 1 -child term 1 --sub child term 1.1 ...
2
votes
1answer
667 views

Multiple relationships in Views Contextual Filters

I use Views in every project, and its not that often that I run into a use case like this any more. In the set up below, I have a Content type with two field collection fields (day guest and evening ...
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 ...
1
vote
1answer
382 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. ...
3
votes
1answer
398 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
474 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 ...
1
vote
0answers
16 views

Creating direct external links

I am new to drupal. Is it possible to create direct external links. For example, In a normal drupal website, we create news articles and create a view for them. And once the user clicks on the title ...
0
votes
1answer
535 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
488 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 (...
0
votes
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
428 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
1answer
419 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
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
445 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 ...
3
votes
1answer
45 views

How to create a view filter which display nodes if “field1” - “field2” < $amount

I have a content type with 2 fields: field1 and field2 I would like to create a view filter which display node based on a calculation on those two fields. The filter should display only nodes if ...
0
votes
2answers
396 views

Views partial Contextual Filter on username

I have a view of users with a contextual filter for username which works great for whole usernames, but I need to allow this to work with partial names, or specifically whole words (userames are full ...
1
vote
2answers
477 views

Count of users who are logged in per day

I searched to find a way to display the number of users who are logged in per day. I want to display a chart using views for last month to show the login statistics of the website. Any suggestion?
0
votes
1answer
491 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 ...
13
votes
8answers
20k views

Add style attribute to view fields

I would like to add a style attribute to each title fields in my view. I have created one field for a color. I tried to rewrite the result like this: <h2 style="color: [field_color];">[title_1]&...
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
1answer
536 views

How to add custom sort order to a taxonomy field list?

I am trying to sort the list of content according to the weight order given to taxonomy term. Terminology used: content type : contact-person-details taxonomy : company vocabulary which ...
1
vote
1answer
701 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 ...
0
votes
2answers
448 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 ...
0
votes
2answers
949 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 ...
-3
votes
0answers
16 views

Sol search vulnerable with anonymous users [duplicate]

My Drupal website uses Search API for Solr integration. The search API and apache solr is used as backend search for the site. I am facing a problem with respect to the usage of a search feature for ...
0
votes
1answer
611 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
27 views

Pass parameters from block to a JSON endpoint using taxonomy term from URL

I've been searching for a solution to being able to pass a taxonomy term on a views block that is on a given page using the term name that is in the URL. I agree with my team that it would be a best ...
-2
votes
0answers
15 views

Exposed form conditional fields

In exposed filter criteria, I'm trying to make a certain exposed form appear only if a value from another exposed form is selected. Is this possible to do in JavaScript? I do not see any working ...
2
votes
1answer
812 views

Error : No eligible views were found. Create a view with an Entity Reference display, or add such a display to an existing view

I cannot work out some basic stuff ... what do I not correct? Using D8, distribution varbase. I would like to create a reference from one content type to antoher in D8 so a user is able to use a ...
1
vote
2answers
573 views

Domain Access: Edit admin/domain/content/ display settings, filters etc

I am using Drupal Commerce and Domain Access module and I wonder where I could be able to edit how page admin/domain/content is displayed. I would expect to find a View page which is utilised by this ...
0
votes
0answers
32 views

How do I change a display plugin class

I'm attempting to modify the definition of a view display plugin to use my own custom class. I used hook_views_plugins_display_alter(), but it doesn't seem it's invoked at all. I've searched in core ...
0
votes
1answer
631 views

How to attach a CSV file with the Google Chart API?

I have created a Google Chart based View and it is working nicely. How to give the facility as the user should be able to upload a CSV file and the data comes accordingly?
3
votes
1answer
608 views

Is it possible to create a hierarchical exposed filter in views using the Data module?

I'm using Data module to adopt tables from the same DB as 'native' Drupal tables and Views module to present the data. I added two dropdown exposed filters with Selective filter module. It takes all ...

1
2 3 4 5
298