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 1421

Use it for questions about rendering or modifying the HTML markup produced by a module/theme.

4
votes
3answers
I'm trying to create a custom file-link.html.twig for a particular content type. I've looked at https://www.drupal.org/node/2354645 which doesn't link plugin theme twigs like file-link but tried file- …
asked May 28 '16 by Nic
2
votes
1answer
Not sure if this is a bug, but I wanted to add some debug into an HTML comment in my page.html.twig file. I added <!-- type={{node.type}} --> but I get: Uncaught PHP Exception Exception: "Object of t …
asked Sep 15 '16 by Nic
1
vote
1answer
I'm working with a multisite Drupal 7 install with many sites. The site accepts both "www." and without via Apache. I'm developing a themes in /sites/all/themes which is used by many of these sites an …
asked Sep 12 '14 by Nic
1
vote
I found a solution which worked in this situation, and so am posting for future reference. I added this to our custom module: /** * Implements hook_template_preprocess_default_variables_alter(). * …
answered May 30 '16 by Nic
0
votes
1answer
I have the following code: return array( '#type' => 'markup', '#markup' => '<gcse:search queryParameterName="query" resultsUrl="' . Url::fromRoute('cn.search', [], ['absolute' => …
asked Oct 1 '16 by Nic
0
votes
1answer
My module now has a lot of TWIG template files in the /custom/MYMODULE/template folder. I tried creating some sub-folders because I thought Drupal 8was supposed to search all sub-folders automatically …
asked Jun 10 '16 by Nic
2
votes
You can also try the String Overrides module for tweaking the label from any Drupal module or theme.
answered Dec 28 '11 by Nic
2
votes
2answers
elements, I don't see a way to add classes to the form element label. What is best practice for theming D8 exposed forms? Update: I used XDebug with PhpStorm to debug both MYTHEME_preprocess_form_element …
asked Aug 11 '16 by Nic
3
votes
3answers
I'm migrating a large custom module and theme from Drupal 6 and can't work out how to convert references to $node->body and $node->teaser since they are no longer fields in the node object, right?
asked Apr 11 '16 by Nic
0
votes
I've made some progress. It seems that {{ node.body.value|raw }} ** unsafe! ** works well but I guess it skipping input filters, and {{ node.body.value }} shows the markup. Not quite sure how t …
answered May 5 '16 by Nic