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
1
answer
413
views
how to add exposed drop-down filter with options in a view of custom table
In a drupal 7 website, I have a view that is based on a custom table. I have a status column in that custom table, which is type of integer and has 0 or 1 value, and in a view I want to add exposed fi …
1
vote
1
answer
662
views
How do I translate a custom string in "Global: Custom text"?
In D9 website I have a view with Global: Custom text field. In that field I have placed a string like this:
<span class="general-info">{{ 'General Info:'|t }}</span>
I want to add a translation for t …
0
votes
How to change view's field (Custom-Text field specifically) value based on other field value...
I referred the code from this source https://drupal.stackexchange.com/a/262718/97205 which was also helpful and figured out following solution:
function THEMENAME_preprocess_views_view_fields(&$varia …
2
votes
2
answers
2k
views
How to change view's field (Custom-Text field specifically) value based on other field value...
I am able to get term-id in hook_views_pre_render with following code, but I am not able to set the value of custom-text field
function mymodule_views_pre_render(\Drupal\views\ViewExecutable $view) { … value->_entity->set('nothing', '<h1>This is my custom mark-up</h1>');
}
}
}
I referred the code from these following 2 sources, but they are not dealing with custom-text field:
How to change views …