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've been working for a while on developing a theme that would work well with Phase2's Pattern Lab Starter (PLS) (https://github.com/phase2/pattern-lab-starter) in the sense that it would use the PLS' tool set and task running scripts to develop a single shared css file for both Drupal and Pattern Lab.
Initially I settled on the Boron theme for my base theme which applied HTML5 elements to the site but had such a slim CSS file that it could easily be replaced with the one produced by PLS.
In d6 i have made some different layout for some nodes.
I can not find it how to do in d8.
What I have found out is that I can copy node.html.twg to node--adres.html.twg.
When i add someting to it, then this template is displayed when I display the adres-node.
But know i want to display some fields, such as field_email, field_adres and field_postcode.
Which code i must use?
In Drupal 6, knowing a few specific node id's I was able to display the page content and titles from within one .tpl.php page. I think I used node_load() (it's been a while).
How can I do such a thing in Drupal 8?
I want to do something like this but I want to specify which node other than the current one and I want more than one.
Hey there lovely community...
I'm new to Theming in Drupal 8 now... and it's of course quite different.
Right now I'm struggling over one simple task... I want to use Jquery Tabs in a node template...
So I build a node--project.html.twig and pasted my a simple HTML-Tabs structure there:
I have a Company Type nodes having a "company logo" image field.
That means that nodes diplays often a redundant Title and Image logo.
What can i do to hide title if image_field is not empty or more best if image_field has not default-image (if no image is uploaded) ?