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
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
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
Results tagged with Search options user 32094

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

0
votes
There are some ways to do that, one may be the implementation of the following preprocess function: hook_preprocess_views_view_table. Here is a code sample: /** * Implements hook_preprocess_views_vi …
answered Aug 21 '16 by mchar
2
votes
My case scenario for a taxonomy field and filtered results, not just default value: if ($form_id == 'views_exposed_form') { $account = user_load($user->uid); $country = taxonomy_term_load($accoun …
answered Nov 2 '16 by mchar
3
votes
Just another way on how to add classes to views rows. /** * Implements template_preprocess_views_view_unformatted. */ function my_theme_preprocess_views_view_unformatted(&$vars) { $view = $vars … ['classes_array'][$key] = $classes . ' my-class'; } } } Note that the preprocess function indicates the View's selected format. Preprocessors functions list for the basic Views' formats. …
answered May 17 '16 by mchar
2
votes
possible ?). Big queries makes me think of Views. One way to find those queries is, to enable the "Show the SQL query" under admin/structure/views/settings edit a view and see how big its query is. It is …
answered Jun 16 '16 by mchar
2
votes
Views, below "Format" there is a "Show" option, change it to "Rendered entity" and choose the node view you have created. The downside of this method is that all views advantages like: "Rewrite results", "Style settings" etc are not available, ds or preprocess functions should lift this weight if need it. …
answered Sep 26 '16 by mchar
0
votes
You may use the flag module to flag users (it could be an automatic flagging in conjunction with Rules)as regulated, unregulated or both and then filter via views all flagged users. For anonymous users needs some special handling. …
answered Dec 14 '14 by mchar
2
votes
You can use views conditional module. Views Conditional is a simple module that allows you to define conditionals (if xxx then yyy) with fields in views
answered Sep 26 '16 by mchar
2
votes
As far as I understand, you want to add a class name to the title field of your nodes listed in a view. (1) Views provide this functionality by default: Adds the class to the selected html element … ) Lastly there is always the preprocess_views_view_fields solution where you can edit your field's attributes: if($view->name == 'view-name') { $vars['fields']['title']->wrapper_prefix = '<div class="views-field views-field-title my-class">'; } It can be used as a field wrapper. …
answered Jan 13 '16 by mchar
0
votes
Create a content view Add the Content: Author relationship Add the Content: Author uid contenxtual filter Provide default value: User ID from URL So far we have a view displaying content create …
answered Jul 9 '16 by mchar
1
vote
1answer
I have a view that lists some nodes, has some exposed filters, like countries and search and a registered path without any contextual filters. I also have a second view with the same exact exposed fi …
asked Dec 5 '16 by mchar
1
vote
2answers
I know there is a post on how to set a view header/footer value here, but how do I set a view header/footer without having to create it through views UI first? The reason why I want to implement a … view header programmatically is because (a) I want to write php code in it, by leveraging the Drupal's API, something that is not so convenient in a textarea field, like the one that the views UI …
asked Nov 25 '16 by mchar
0
votes
The features export views' code in files like this: my_module.views_default.inc. Every feature module with a file my_module.views_default.inc contains views. Manually: Searching against those … some changes to a view (save) and drush fl. The feature that will appear with an overridden status contains that view, otherwise the view is not tracked yet. To see which features contains views code …
answered Jun 7 '16 by mchar
6
votes
== 'my_view_display') { // View's header declaration. $item = array( 'id' => 'area', 'table' => 'views', 'field' => 'area', 'relationship' => 'none', 'group_type' => 'group …
answered Nov 25 '16 by mchar
1
vote
This can be done by implementing the hook_views_pre_render and altering the view's header content. Here is a sample code: /** * Implements hook_views_pre_render(). */ function my_module_views_pre_r …
answered Mar 14 '16 by mchar
0
votes
You have to implement the hook_menu_alter and adjust the links weight property to your will. Here is a sample code that changes the node's default contextual links by placing the delete link over the …
answered Feb 20 '16 by mchar

15 30 50 per page