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

learn more… | top users | synonyms (2)

1
vote
0answers
5 views

When do hook_views_data and hook_views_data_alter get called?

I'm working on a site I inherited that has a functioning hook_views_data_alter function. I can see things in the Views editor that it has added. However, I cannot figure out how on earth to get that ...
0
votes
0answers
8 views

Menu with contextual links from view

Each user, lets say performer has profile page (which is node, not default user page) which is visible and can be made once.. Band (for example "Cool Band") can create image gallery, video gallery, ...
0
votes
0answers
4 views

expose a date filter in a views datasource JSON View

I need to expose a date filter in a JSON View, made with the Views Datasource module, but I can't find any documentation on the matter, I don't even know if it's possible. I know how to do it using ...
0
votes
0answers
6 views

How to add image & title to Podcast Feed dynamically

Using either View - RSS Fields / iTunes - (https://www.drupal.org/node/1473728) or FFPC (https://www.drupal.org/project/ffpc)... I have a content type for a Podcast and a second content type for ...
0
votes
0answers
4 views

Populate an exposed filter textbox to select box with available result options

I have the following view that lists the job openings at different offices of the company. But I want to be able to filter out only certain roles and only display that office. Currently the roles is ...
0
votes
2answers
15 views

How to Determine view type (content, user taxonomy, etc)

I have inherited a site and I am trying to customise and replace some of the views. I have been told that there are views of various types, content, user, taxonomy, search index, etc. Where in the ...
0
votes
1answer
26 views

How to fetch content data based on Node reference field into a view

i am attempting to fetch the records based on node reference fields into a content type page. i added node reference fields "news" & "Articles" (and many more) into my "Industry" Content type: ...
0
votes
1answer
17 views

Call another view with a single exposed filter

I have a page view which works fine for two cases in the exposed filter (say school one and school two). However, if school three is chosen in the exposed filter, I want another view to be displayed ...
0
votes
0answers
16 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: ...
0
votes
0answers
7 views

Query addWhere() with “NOT EXISTS” is crashing

I'm using hook_views_query_alter to modify a views query to exclude certain nodes on certain pages. I've got the IDs in an array called $excludes, and I'm trying to compare the performance by using ...
0
votes
0answers
8 views

What is the best way to create a User Account management area?

So I'm working on a feature set where there is the Administrative area, supported with the main and primary admin sections, nothing special there really. But I have to build a User Content Management ...
0
votes
0answers
15 views

Content related to role and user creation time

I want to show content to the user which belongs to his role, such as taxonomy, its creation time, or another user custom field. Is there any way to do this in Drupal 8? To Clarify my Question: I ...
1
vote
1answer
21 views

Drupal 8: How to implement hook_views_query_alter

I try to implement hook_views_query_alter in Drupal 8. I found a hint, that it has to be in my_module.views_execution.inc. I tried it, but the hook never gets called. function ...
1
vote
0answers
13 views

Adding a join in a Views field handler class constructor?

In a Views field handler, one can define additional fields to accompany the base field defined in hook_field_data. These field values are based on database columns on the same row, and they can be ...
0
votes
2answers
20 views

Display fields node in table like views

I have a content type documents and my fields (created by admin) are: Doc1 File Date Doc2 File Date Doc3 ... The reason why I don't do a content type just with: "Doc, file, date" and add the nodes ...
0
votes
0answers
26 views

Best way to trigger custom function in table row or in all rows [on hold]

I need some advice on the best way to achieve the following. I have a view that shows the following table: I want to have a submit button for each row that will trigger a custom function in a ...
1
vote
2answers
32 views

How do I show specific content on a separate page?

I have menu links HOME | Property(links to property content type) | NEWS. In every News there are tags which reference to the property. I want to link "NEWS" menu item to a separate page which should ...
0
votes
0answers
18 views

How to Make article view listing same as http://scroll.in site [on hold]

I want to create an article listing same as http://scroll.in site, Means page url(Article URL)/Google analatic/Facebook meta tag should change, when user scroll page form one article to another ...
1
vote
0answers
20 views

How to use contextual filter argument as a title in default menu tab — views?

How to set title in above image = current year so that it will provide all titles/content of current year -- 2016? OR How can we create an yearly archive with default year opened = current year ...
0
votes
0answers
29 views

How do I combine title and body as a filter programmatically?

Attached upon the existing exposed filter, this code enables title and body to be separately selected and to be searched separately but it needs the addition of 'all' option. I have difficulty joining ...
0
votes
1answer
46 views

Problem with the template of a view

I created a template to customize labels views. But the fields are not displayed between labels. Here are the views-view-field--sitemap--views-data-export--field-image.tpl.php : <?php ...
0
votes
0answers
12 views

Pass value from browser to an array

I have built some javascript modifications to an exposed views filter form. I want to add a value to the exposed_input array, basically, a way of keeping track of what was last clicked. I want the ...
1
vote
1answer
33 views

The <front> route 's path

My <front> and <none> route is now using one of my view path... I think it's because I delete the default home view. I don't need it because my home page is a Panels Page... How to set ...
2
votes
1answer
33 views

How to modify HTML layout inside a View template

I am very new to Drupal and this is my first post in this community. What I am trying to achieve I know may be very simple but just don't know how! So I am looking forward for expert help. First ...
0
votes
0answers
20 views

Use taxonomy path-alias

I've been working playing with the Facet API Search lately and I liked a lot the option that Facet API provides to use the alias of the taxonomies in the URL. I was wondering if there is a chance to ...
0
votes
0answers
6 views

Display every referencing node of a type in one table row, while still being able to use exposed filters

I've got a content type "Examination" that has about 8 possible types. It references a node which I later use to display a table with all the data. The main node might be referenced once by each type ...
1
vote
0answers
31 views

Drupal 8: How to create accordion View with table inside?

I'm trying to generate a accordion grouped by year. I have used Accordion module for this. It is giving accordion which is fine but I want data inside accordion in tabular format. For ex: Table ...
1
vote
1answer
33 views

Passing Arguments between an EntityReference field and an EntityReference View

So I'm trying to figure out how to filter a couple of entityreference view I'm using to populate an entityreference field. It has the option to pass arguments to the view, but I'm not sure HOW to do ...
0
votes
0answers
23 views

Monday as first day of week

In the date and time settings I have configured globally that Monday is the first day of the week, but this setting is is not set for views. Is there another configuration for views?
0
votes
0answers
23 views

How to expose paging data in REST export views

How to allow views to export paging data along with entities? I can set pager, and it works of course, for example my_view?page=1 displays something like [ {...}, {...} ] but I only get list ...
0
votes
0answers
14 views

Build a link with variables in a views custom text using '%5B' characters

I use the FillPDF module. Data from a Webform are used to generate a pdf thanks to a url, as explained in the FillPDF documentation. ...
0
votes
0answers
21 views

How do I deliver a nested JSON array for content reference with export view display?

I created a product content type with content reference to article(one product to many articles). Then I added field "Content: ID" "Content: Title" and "(field_article: Content) Content: Title" to a ...
1
vote
3answers
30 views

How do I print the SQL query of a view in front end?

I have installed latest Drupal 8.1.1 also Devel module installed there is no any option for Display query log on devel setting page while it's present on D7 Devel module. I have created a view with ...
0
votes
0answers
10 views

How to show a file list ordered by taxonomy field with views?

I've a file type of type "document" with an additional field of type "term reference". When I upload a new file I can link a term of that vocabulary to my file, like it was a folder. Now I need to ...
0
votes
0answers
20 views

If view results are odd, append the result with another row

I have 3 Views. Each have 1-9 items. The problem is that if the user adds an odd number items, I want to be able to add another. So my logic is to count the rows, if it the row count is odd, insert ...
0
votes
0answers
9 views

Based on articles taxonomy and branch selection we are differentiating the taxonomies for different branches

Based on articles taxonomy and branch selection we are differentiating the taxonomies for different branches. I created one taxonomy per one page just like section 1 sub ...
1
vote
1answer
19 views

How to group results by multiple fields?

i have values in database like : x submits file 1 x submits file 2 y submits file 1 y submits file 3 x submits file 1(again) i had my output with aggregation settings as group results together ...
0
votes
0answers
13 views

Views Auto Complete on Node Reference: Not getting “contains” [closed]

Having trouble trying to get autocomplete to work with a node reference and would appreciate any insight. I have two custom content types: Partners and Funding. The latter has a node reference to the ...
0
votes
2answers
27 views

How to make sure that /taxonomy/term/24/WHATEVER gives 404?

Google found up some weird links on my website and has started indexing stuff like /taxonomy/term/24/WHATEVER. I don't want that. I also don't want to find all these URLs manually, ideally they will ...
2
votes
1answer
38 views

How to use Views Excel Export or Views data export to export a filtered table?

A while back I asked a question about how to pass a list of columns to display in a views table and a solution closest to what I wanted to do was a module: Views Dynamic Fields I was positively ...
0
votes
0answers
6 views

Views contextual filter by same Taxonomy Term Name with different Parent

I'm trying to filter a view with a path like this "/view/%/%/%" , i'm having a hard time trying to filter nodes that belong to different childs but have the same taxonomy term name. This is the ...
1
vote
1answer
15 views

Change date format of a single result in a view

I have a view that gives me a list of nodes titles and when it was last updated. I want to display the changed date with only time if it is today, otherwise i just want the date. i.e. 17.00 Title ...
0
votes
1answer
8 views

How to search by hierarchical taxonomy in views?

I have a view with a Global: Combine fields filter with some fields, one of theese fields is a hiererchical select field of a taxonomy terms. But it doesn't work. How can I set a search box to search ...
0
votes
1answer
27 views

How to hide taxonomy terms with no content

How to display only those taxonomy terms that have content? Can this be done with the help of relationships or contextual filters?
0
votes
0answers
12 views

after ajax callback, how to alter views exposed form

Look at my code is there any other way to do this. I tried to change my form element type in my exposed view filter after selecting any dropdown menu and my dsm($form_state) not showing any [values] ...
1
vote
1answer
59 views

Views output realname field as a contextual link

Contextual is set up to display all content from a user for a specific content type. www.example.com/users/realname/gallery where realname is contextual filter. Realname is used with token that ...
0
votes
0answers
40 views

Related Content View using Entity Reference Fields and Taxonomy Depth

I would like to display a "Related Content" block on nodes of type Car when the content being viewed shares the same Entity Reference field value of node of type Parts. Content Type #1 - Car Title ...
1
vote
1answer
35 views
+50

Treating string field as numeric to use as an exposed filter

I have a field in my users' profiles that has been defined as varchar initially even though it holds numeric values. I'm trying to use that field as an exposed filter and perform "greater than or ...
0
votes
0answers
9 views

InvalidArgumentException when saving a view

I have a view named News containing Aggregated RSS feeds. I noticed duplicate articles were appearing. First I tried to enable Query Settings > DISTINCT, but the duplicates still remained so I ...
0
votes
2answers
18 views

How do you include a field.tpl.php, to a custom views field handler. outside of the theme?

so i've created my custom field handler in views. and i want to include a field template in the module. i can achieve what i need by copying the views-view-field.tpl.php into my theme. but i want ...