Questions tagged [views]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
8 views

Entity Reference View fails after update to drupal 8.7.6

Recently I updated my drupal site from 8.6.14 to 8.7.6. A previously-working Entity Reference View display that is connected to a form Autocomplete field stopped working. The spinning circle keeps ...
-1
votes
0answers
20 views

When is the create_function completely removed from PHP? [on hold]

I have a old Drupal 7 site and have views_php modules installed, but I get the error message Deprecated function: Function create_function on my PHP 7.2 server. Since its a deprecated function, from ...
0
votes
1answer
25 views

Exposed filter only allowing content types in list

I have a view called (Resources) that displays content filtering by content type. These are the selected options: Expose this filter to visitors, to allow them to change it: ✅ Filter type to expose: ...
0
votes
1answer
13 views

Unresolved dependency updating the module

I'm updating the Views module on a Drupal 7 site, and I'm receiving this message when I update the database. How do I resolve this dependency issue when I need to update the Views module first?
-3
votes
0answers
13 views

How to create a slide up menu on mouse click [on hold]

Does anybody knows a method or a Drupal module helps in achieving the Slide Up Menu shown in the above image for a online website: 1) The below image show that there is no visible menu to perform an ...
2
votes
0answers
45 views

Webform module loosing language for referenced options

First I have content type "Quiz option" which is translatable. Then I have a view that returns Entity references of that type. For language option I selected "Content language of view row" and also ...
-4
votes
0answers
37 views

Show different item each render [on hold]

I have a Drupal 8 view that has several items in it, but I've configured it to show just one. What I want to do now is to iterate through the items on each page render, so each item get's equal ...
0
votes
0answers
12 views

Views exposed date filter range format

I have a view with an exposed filter for a date range. I use jquery ui datepicker to select dates. It works good and I can select dates in spanish format (dd/mm/yyyy). But when I apply the filter, It ...
-2
votes
0answers
21 views

Contextual filter: Content: Nid issue [on hold]

I trying to make a views of my new products using contextual filter :Content: Nid. In content nid I opted provide default value and type:Fixed value. On Fixed value field only 27 values are added ...
0
votes
0answers
15 views

Unset cell item if field is true on a view page

I have a Views Table Page in Drupal 8 that displays node titles. On the node, there's a checkbox field that when checked needs indicate to the Views Table Page that title is not to display. I ...
-2
votes
0answers
29 views

How do I create a menu item from view results [closed]

My organization has several Departments. Some of these Departments have websites. Some do not. I have a Department Content Type. These Departments have an optional website field. I have a view that ...
0
votes
1answer
16 views

Admin page to show 2 blocks (or page+block) with 1 filter that affects both blocks

I am new to Drupal and would love some guidance on how best to achieve the following: An admin page that has (top-down): - a date selector, defaulting to today's date - a section displaying Arrivals ...
0
votes
1answer
28 views

Removing entity queue entries from a view

I have a list of 100 projects. I have set 10 projects as featured projects using Entity Queue module. I have a projects page that shows has two views: First view: 10 projects from entity queue ...
0
votes
2answers
41 views

AJAX Views with filter as path component

I have a view of Commerce products of type Print. The product type Print has a reference on a Taxonomy called Category. I setup the Category field as an exposed filter (dropdown) for my View page. The ...
0
votes
1answer
19 views

Hide SVG image based on Responsive Viewport with CSS [on hold]

Using Drupal 7 Views I have created a View which shows an SVG image file. Here is an example scenerio: A Marketing Article Node is periodically created when a specific Prodcut offer is in place, the ...
0
votes
0answers
12 views

Updating Solr search_api filters on node deletion

With Drupal 7 I am using a SOLR search index. The index covers a particular content type. I have a view which uses the search facets and displays a paged list of items in the index. My problem comes ...
1
vote
2answers
74 views

Change page title from Views preprocess function

I want to be able to change the main page title based on some value that I get in a views preprocess function. The View is displayed as a page. function MYTHEME_preprocess_views_view(&$variables)...
-3
votes
0answers
8 views

Nivo Slider apperas as very little square block but is not visible [closed]

After installing Nivo Slider in Drupal 7 it appears as al little square in the upper right zone of the block. The same happens with other slider I have installed
1
vote
0answers
21 views

How do I display only a field? [closed]

I have a view which displays nodes of content type "news", which has two fields: f_one and f_two. What I want is: If f_one has content and f_two is empty, display only f_one If f_one is empty and ...
0
votes
1answer
12 views

Views view unformatted and outputting taxonomy custom field

Original problem I had was I setup a taxonomy called Category. I added some vocabulary to my Category taxonomy. Some of the terms I added have contain spaces. The labels should have spaces so I want ...
0
votes
0answers
7 views

Reinitialize views ajax after embedding a view

I have installed an ajax_links_api module, which basically allows you to load pages via ajax. I got everything to work, however, there is an issue with views. In my view I have infinite scroll and ...
-1
votes
0answers
20 views

Exposed filter ajax calling other entire ajax? [closed]

I have used the below code from this URL. Run callback after Views exposed filter AJAX . (function($, Drupal, drupalSettings) { Drupal.behaviors.myModuleScript = { attach: function(context, ...
0
votes
1answer
23 views

How can I filter entity titles in an autocomplete form and use the title as context for a View page?

I am trying to provide a form with a single autocomplete text field on the front page. The user can search for a title of the product (commerce_product), and when they submit, they're redirected to a ...
0
votes
1answer
19 views

Trying to filter a View based on a Paragraph entity reference

I want to filter a View by content type 'Article' and only content that is referenced to a specific node id 123. I have a Paragraph in Article content type. Inside the Paragraph is an entity reference ...
0
votes
3answers
33 views

Counting each filter near its label

I've created a view in order to override the default search page form and results, then I've exposed the content type in order to have the possibility to filter by that, all now is working How can I ...
0
votes
0answers
11 views

Webform default views missing “In Code”

I was looking in the error logs, and I realized that users cannot view submissions of webforms. I then realized that the webform views webform_analysis, webform_results, and webform_submissions were ...
0
votes
0answers
35 views

Sort handler with relationship

I added 2 views fields to make available the witdh and height of images using the information provided by the file_entity module. This works and I can show the values. Now I want to make both fields ...
-2
votes
0answers
24 views

Views Infinite Scroll won't work

I'm trying to add 'Views Infinite Scroll' module to my Drupal 8 website, but it won't work :( Configuration of my View: Yeah I've checked AJAX I've selected "Infinite Scroll" as pager and checked '...
0
votes
2answers
13 views

Exposed Form in Block Missing?

I'm trying to create a view based on a Solr search index that includes a search form in a block. The view seems to be working based on the preview I see when editing the view. I have set "Exposed form ...
-3
votes
0answers
27 views

How to Create Custom form with table filter?

I'm currently studying Drupal 8, and I already learned simple CRUD in Drupal 8. Now I want to learn how to add filters or search on Drupal tables programmatically. How can I do that? The code below is ...
-1
votes
1answer
33 views

Show a content type's subfield instead of the default title in Drupal 7 when using an Entity Reference field

I am editing a large Drupal 7 website. In a part of this site, decisions are shown. Each decision can contain related decisions. There is a custom content type decision, in which there is a field that ...
0
votes
2answers
28 views

Defaulting a value for a new boolean field added to an existing content type with content?

We have a Drupal 8 site. For one of our features, I added a boolean field called 'Pinned' to a our Blog Post content type. As I added the filed as a filter criteria to views, I noticed that, no ...
-2
votes
1answer
29 views

Default moderated content view has an error message

The following error appears in the default state at Home>Administration>Structure>Views>Moderated content>Edit. No valid values found on filter: Content revision: Moderation state. What is wrong?
1
vote
1answer
38 views

How to make Shipping services available in Rules tokens (data selectors)? [closed]

I am using D7 and Drupal commerce, with a flat rate shipping service. In my country the VAT for both products and shipping costs must be included in the total VAT amount. But the only line items ...
0
votes
1answer
24 views

Multiple pagers on same view page

When creating a view whose display type is page, we got an option to apply pagination using pager option given in view, where you get sort of radio buttons to select pager, full, mini, etc.. Do we ...
0
votes
0answers
13 views

Field Collection has Entity Reference field that use an Entity Reference View based on current NID. Adding an FC item clears all values

My node type has an unlimited values field collection. It has an entity reference field for Users. Its available values come from a view that uses current NID. The first FC item works fine, but when ...
-1
votes
1answer
20 views

Relationship duplicates data

I have a view of content type documents wherein I want the logged in user to request access for each document and after it approved or rejected the status next to that list of documents should show ...
1
vote
1answer
21 views

Hide a field for that particular row based on value from custom table

I have a custom module where in a user requests access to view a node. I have a view page which currently lists all nodes and has a button "Request Access" to it. When the user clicks on it, an entry ...
0
votes
0answers
18 views

View Custom Table not showing up in views list

I am using "View Custom Table" module, and am trying to render a table from the drupal database. According to the documentation, after the Custom table is defined, it should be available as a dropdown ...
0
votes
1answer
16 views

Show all nodes with the same term, the current user is assigned to

That sounds quite simple but I can't find a hint how to do this: I have invoices with a term reference to a "Department" vocabulary [field_invoice_department]. The user has a term reference to the ...
0
votes
0answers
34 views

JSON view (rest export)

I have a rest export view and this is my output: { title: "about", view: "[{"id":7,"field_history_json":7,"field_history_text":"sdfsfsdffd","field_history_year":3244}]" } My field "view" is a ...
0
votes
0answers
43 views

How to create a Contextual Filter using an Entity Reference field in user's profile?

My site's users have an entity reference field in their profile called "Club" where they select which Club they are a member of. Similarly, when creating a Project (a content type) you can select ...
2
votes
1answer
30 views

Find which views are using Views PHP

I have a project that is using Views PHP, and I'd like to figure out which views are using PHP from this module. This will help me determine if I can easily remove the dependency on the module. Is ...
-1
votes
0answers
22 views

How to create a view that displays results based on certain conditions?

I need to create a view based on user of a certain role. Now, I need to display results of this view depending on some conditions: If the user is not a subscriber, the view should only show their ...
-1
votes
1answer
42 views

How do I pull data from an external database, and display it in Views? [closed]

I am fairly new to Drupal, and just started working with Drupal 8. I know a table can be generated in Views for the content which is displayed/used somewhere on the site, and a table can also be ...
-3
votes
0answers
32 views

PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax;

Using Drupal 7, The given error appeared when set the views of IDS-Product "Page" revert to default. After that AJAX HTTp 500 error appeared and affect some of my website pages.
-1
votes
1answer
29 views

List files in a directory as a table

I created a folder inside of my Drupal directory where my client can directly FTP into and upload or remove PDFs. What I'm trying to do is create a page called "Documents" which then displays all ...
0
votes
0answers
27 views

Contextual filter on entity reference with Pathauto

I want to create an advanced view in Drupal 8 using contextual filters and relationships, but I fail. BACKGROUND: I have three content types: Programme Module Testimonial Testimonials may span ...
0
votes
0answers
38 views

How can I show view displays as Ajax tabs?

I would like to have a view with a Grid and a List tab (view displays) in Drupal 8. The URL should not change and the filter and pagination values should also be maintained when switching between ...
0
votes
1answer
62 views

How do I use a term page display?

In Drupal 7, the module taxonomy_display allowed me to insert a content view via views display options under the taxonomy manage display. I am working on rebuilding my Drupal 7 views for Drupal 8, and ...