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 |
Version tags should be used for questions that apply to a version only, not to merely say what version a site is using.
0
votes
1
answer
165
views
How do I populate fields in content type not in feed when importing?
I have a content type that contains a couple of required fields that do not have a mapping counterpart in the csv feed. When I import the csv feed, the process fails because of the required fields. …
0
votes
1
answer
314
views
Webform file upload with condition
I wasn't sure if this meant that it wouldn't be fixed just for Drupal 7 or does this apply to Drupal 8 as well? …
0
votes
Accepted
Webform file upload with condition
I found a good solution. Since there were multiple elements that depended on the same condition for visibility, I realized I could put them into a fieldset and define the condition for the fieldset i …
0
votes
1
answer
110
views
When updating or creating a node of a specific type, I want to save a PDF version into files
I have a node of a particular type that I would like to save as a pdf file (using Entity_print) upon creation or update (whenever a content is saved). The issue I am running into is that some of the v …
4
votes
2
answers
569
views
How to create a list of vocabulary names for a widget?
I would like to create a customizable filter widget that can be used to filter a view on a page. One type of filter uses taxonomy terms. While I can easily create a list of terms, I find I cannot cre …
0
votes
Accepted
How to create a list of vocabulary names for a widget?
Since this wasn't directly accessible via twig, I went the route of creating a view of the taxonomy terms. This worked well to create an entity reference widget which was then used to define a field …
0
votes
1
answer
67
views
session_unset logs out user when viewing the page
We have an application that we developed in Drupal 7 and I am tasked with migrating this form to Drupal 8. … I have a question about the session behavior which seems to have changed from Drupal 7 to 8. …
0
votes
Accepted
session_unset logs out user when viewing the page
I indeed updated it to use the symfony that is now part of drupal 8. (Comment #3). …
0
votes
3
answers
1k
views
Using MYTHEME_page_attachment_alter does not alter the favicon
On a side note, we had this working successfully in Drupal 7 in MYTHEME_html_head_alter() and I am migrating this to Drupal 8. …
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 have a second alias for a node to be displayed in a different view mode?
The above approach was too complex for the time crunch so I went back to my first solution which was to create a new content type that contains a field that is an entity reference to the 'original' co …
1
vote
3
answers
675
views
How can I have a second alias for a node to be displayed in a different view mode? [duplicate]
Am I missing something or trying to do something Drupal 8 cannot handle?
I looked at Routing and path aliases but that doesn't quite address my question. …
0
votes
How can I pass variables from a view template to a node template?
In Drupal 8, row_index is not available in the view itself (it should be, but it is null). …
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 …