Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I think one of the greatest plugins of D7 was the "Entity Reference" plugin.. Now its include in D8 in core but it seems like nobody knows how to use it..
I really can't figure out how to display field values of an referenced entity in my template.
Does anybody have an idea? Do I need to create a preprocess function with all the business logic and pass it to the template? Is there maybe already a "twig function" for getting field values of an referenced entity?
lets say we have to Content Types: "A" and "B".
Content Type "A" has only one field: "a_field_1" of typ "Entity Reference"
Content Type "B" has 2 fields: b_field_1 and b_field_2 of type Text or something else..
How , where and why could i define the default Drupal block to be positioned where I want in the sections defined in the .info file of my theme, when a administrator choose to install and use it ??
Some var in the info file? in a config folder? with a module? with my right feet ?
If you help me to make it possible, you'll save 36 kittens in the world from DEATH !
Hi, I am experiencing an issue with table headers not being sticky when I scroll within an overflow vertically. The table headers are sticky when I scroll down the entire page, but not when I scroll within the overflow. Any idea how I can apply the sticky header to work properly within the overflow?
I'm a newbie about Drupal.
But my question is, how do I change the Theme Alpine pictures?
I can't find anything about this, and I will change the standard Mountain in a own picture.
So the background... now there are trees, but how do I changen this picture in a own picture?
Hi,
I have problem with generating HTML for page using node ID. I have content type: page and redirect_page.
I would like to make new node using redirect_page type with the same content and template as on page which I've already made. I hook template page--redirect_page.tpl.php to my content type redirect_page. This content type has field with ID of page I would like to render.