Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there any way to use {{ node.field_name }} in the ds custom layout?
{{ ds_content.field_name }} won't work, even if field names in settings is checked.
Kint shows the field for node.
In the normal page.html.twig it works. I’d like to use in the template not in the UI.
Using the field within DS UI works, but generates unnecessary code, besides that the field length for field templates is limited.
Going crazy here!
Comments
Comment #2
stillworks CreditAttribution: stillworks commentedComment #3
borisson_No idea how to resolve the actual issue, but it seems you (like many others – it's really easy to misinterpret) are confused by the "Issue tags" field. As the guidelines state, they aren't meant for free text tags related to the issue, but only for specific categorization purposes, usually by module maintainers.
So, if you aren't sure your current usage is correct, please just leave the field empty.
Comment #4
aspilicious CreditAttribution: aspilicious commentedYou can print ds_content to see what will be rendered. Only the fields available in the UI will be listed.