Skip to main content
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
Results tagged with
Search options not deleted user 48281

The most basic form of content on a Drupal site is a node.

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 …
Chris Howell's user avatar
0 votes
1 answer
2k views

how do I get the parent node of an entity reference node

I have two content types - A and B. For content type A, there are 5 content items - Aa, Ab, Ac, Ad, Ae. For content type B, I have two items Ba, Bb. Content type B has a field that is an entity ref …
Chris Howell's user avatar
0 votes
Accepted

session_unset logs out user when viewing the page

I was able to combine two of the responses to solve my problem. I indeed updated it to use the symfony that is now part of drupal 8. (Comment #3). Reading https://www.drupal.org/docs/7/security/saf …
Chris Howell's user avatar
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. …
Chris Howell's user avatar
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 …
Chris Howell's user avatar
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 …
Chris Howell's user avatar
1 vote
1 answer
264 views

How do I display two different views for a single content?

I'm quite new to drupal and trying to learn this after working with a very different CMS system the past ten years. Here is my issue/question: I have a content type that I'd like to have two distinc …
Chris Howell's user avatar