I'm trying to add theme suggestions for "container" and it's adding the suggestions to the list, but its not using the suggestions I put in. I've triple checked the file name, tried several directories in the themes template folder and still it won't load the file.
Hi! I'm new to Drupal—and struggling to figure this out.
I'm trying to create a page that has specific content requirements. I'd like it to:
Have a unique set of custom content fields
Use a specific template
Show up at a specific path
Is this possible?
When I try to use the Page Manager to create a page, I'm confused by what the "Variant Types" are about. I don't want to use Blocks or Panels (I don't think anyway)—I'm just wanting to be able to create specific, custom fields for the page and then reference them in a template.
I have 16 fields that are numbered (e.g. node.field_1.value, node.field_2.value, etc.). Rather than call each of these separately, I'd like to use a loop in my Twig template. So, I've got:
{% for i in 1..16 %}
{{ attribute(_context,"node.field_"~i~".value") }}
{% endfor }}