This forum is for assistance with theme development.

Problem with placing a block in a region

Good day!

I'm only start to learn Drupal and i have a problem with configuring blocks. I want to hide some block on some pages but when I open page with block configuration there isn't tabs Content types and Pages in visibility settings. Can you tell me why? Drupal version 8.9.3

All node properties are protected

I installed fresh Drupal 9, Devel and Kint as usual but when i tried to access the node properties saw all of them are protected, so any twig function only return Null

Align the image field to the left and the text to the right in a view

Hi everybody!
I have created a view with the teaser. I have a content type with two fields: a body and one image. You can see here:
http://ssgweb.iaa.es/results

Field name as CSS class on CK Editor Iframe body?

I have a content-type with 6 different CKEditors for several different parts of the page. Some of these will have a very different layout in the frontend and I would like to style the content in the WYSIWYG to look the same for each instance but there is absolutely no way to target the content in each individualy.

A CKeditor Iframe has the following classes: 

<body contenteditable="true" class="cke_editable cke_editable_themed cke_contents_ltr cke_show_borders" spellcheck="true" style="height: auto; min-height: auto;"></body>

How to use 'field_image' from 'Content type' in a TWIG template (e.g Branding Region)

I try to use the image that should be available for each node of a particular Content Type. In the content type I have added a field_image (system name) with label "Branding Region Backgound". I have made a template file "block--system-branding-block.html.twig" which works fine. But ... how to get the image that is defined / uploaded for each content page of this particular Content Type?

This trail {{ file_url(node.field_image.entity.fileuri) }}  is not working.


Displaying text (floating text) to the right of an image - Newbie

Hi 

I am very new to Drupal. I have created a content page (based on basic page for static content) with images and the texts appear below that. 

How do I get the texts to float to right of the image? I mean where do I make the changes and apply it to the contents of the page.

It would be a CSS file I think. 

I have two themes installed (default based on foundation, Zurb Foundation 6). 

Regards

Zain

 

Pages

Subscribe with RSS Subscribe to RSS - Theme development