Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The Views module allows creating lists of entities with a flexible query builder.
0
votes
How to conditionally display field contents in Views
The second line of code in your example has a typo, you're missing a semicolon. Also, this number you're doing here feels squishy:
<?php
// code ...
?>[NID]<?php
// code ...
?>
Is that even work …
2
votes
Executing a view programmatically with input filters
I don’t think Views will provide you with the best e-mail friendly output out of the box. But you could easily write your own custom theming function that parses the output returned by the View. …
8
votes
Accepted
When should I create multiple Displays of a View instead of multiple Views?
Code-wise, both Views and displays are represented by objects. … If you want to know by exactly how much, you can go to admin/structure/views/settings (if you are in D7) and select Show information and statistics about the view during live preview, Show the SQL query …
1
vote
Accepted
views in D7 :: remove doubles in exposed filter list
The Views exposed filters block is a Drupal form, one that can be modified via a hook_form_alter or hook_form_FORM_ID_alter implementation. … If you are in D7, the ID you are looking for will most likely be prepended with views-exposed.... …
13
votes
Accepted
views exposed filter on field collection item
Field collection items can perfectly participate as Views filters. The key is to use Views relationships. …
0
votes
Accepted
Drupal 7 and Views 3: Page Display and Random Appended Arguments in URL
Views doesn't have the ability to throw 404 pages because there are "extra" arguments in the URL. Views does throw 404s when there is no argument in the URL (if configured that way). …
0
votes
Views caching not working for Taxonomy listing pages
Have you tried doing a print_r(), dpm(), etc. on the cache_get() and cache_set() functions to see what's going on? The output of this tends to be somewhat verbose, so I generally like to do an error_l …
0
votes
Connect Views and a second database
Establishing a relationship between your users' field and the book entities would definitely be possible, and rather easy with Views - if both the user and book entity where present in Drupal. … That way you will be able to harness all the power that Views relationships have to offer. You can also consider stealing some data import ideas from The Economist's migration to Drupal. …
0
votes
Workflow / Views: Specific state date
Add to the Filter criteria: Where current state = reviewed
Add the current field: Workflow: current time
That should return you the time of the state change to reviewed, for all nodes who are curren …
1
vote
Accepted
How can I create two distinct sets of exposed filters for use in a single view?
It looks like what you are describing is faceted search. In Drupal, a good solution for faceted search is using Apache Solr along with the Apache Solr module. Here's a video tutorial on how to install …
0
votes
Views block: Displaying a content block on profile page (/user) with user's chosen tags as c...
I have not done this before, but I would try doing the following first:
Define a View. Make sure the type of View is "user" and not the default "node".
Define fields. If you are using Drupal seven, …
1
vote
Views Slideshow Using Absolute Path to Images
For a complete list of Views preprocessors, you can look at the views/theme/theme.inc source code. …
1
vote
How to integrate custom code into a "Features" feature
I think I've been at your spot before with a single D6 codebase running on different sites and using Features for managing exportables such as Views. …
1
vote
Accepted
Site down after upgrading Views
As for the present tense, since you already attempted the upgrade, I would start by following step #3 above, and if you can't locate a relevant entry in the Views issue queue that points you in the right …
1
vote
Rotate views results based on number of times viewed
IMHO I don't think that you will be able to find a module that does this. You will need to write custom code for that. Depending on how comfortable you are hacking with Drupal and PHP you might find i …