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.
Now, I had the template for field_link overwritten, and I noticed that when I used this option it stopped using my template. Is there a way to add a Class to a field_link in Twig without it breaking your template?
I have the following question. I have a paragraph with the following structure:
Paragraph
- field_paragraph_content
- field_image
It's a paragraph inside a paragraph
From the Parent Twig Paragraph I want to access what would be in the child's Twig the field content.field_image
My requirement is to print the image at the same level of field_paragraph_content but I don't want to manually create the img tag or use drupal_image() or having to manually declare the Image Styles.
I created a content type with the name 'Brand' and a field that contains three categories which are separate pages on the website. Each of those categories are also shown in the menu. Now I want to create a submenu below each category in the menu where the 'Brand' pages are shown which are connected to the selected category. Is there a way to do this in Twig?
Currently I have the following template where I want to show the items.
I have just start learning Drupal while im building websites with wordpress
I want to ask just a question. How can i freely design my regions on a web site in drupal where i would place my blocks like the websites i mentioned above?