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 |
Use it for questions about rendering or modifying the HTML markup produced by a module/theme.
0
votes
3
answers
1k
views
Using MYTHEME_page_attachment_alter does not alter the favicon
Based on other similar stackexchange questions and documentation, I've implemented the following in the MYTHEME_page_attachment_alter function in MYTHEME.theme file to change the favicon based on the …
0
votes
Accepted
Using MYTHEME_page_attachment_alter does not alter the favicon
It turns out I was missing
<head-placeholder token="{{ placeholder_token|raw }}">
in the head section of html.html.twig. Once I put that in there, the tags appeared and the favicon gets updated p …
0
votes
How can I pass variables from a view template to a node template?
Ok, so I finally solved my problem. I went with 'solution #1' in the original question. I created a single view showing content with unformatted list format and then triplicated that. Here's the te …
1
vote
1
answer
2k
views
How can I pass the loop.index from a view template to a node template?
In a views template (views-view-unformatted.twig.html), I have
{% for row in rows %}
{% set row_index = loop.index0 %}
{{ row.content }}
{% endfor %}
where each row is processed in a …
2
votes
Accepted
How can I pass the loop.index from a view template to a node template?
This can be done using the preprocess function in my_theme.theme. In the case above, the row was formatted in node--view--pagename.html.twig, so the preprocessor function name is mytheme_preprocess_n …
0
votes
2
answers
3k
views
How can I pass variables from a view template to a node template?
I have a view showing the nodes of a content type which has reference entity fields to another content type.
I am trying to iterate through this view with templates.
If I choose to show nodes for my f …