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.
In my taxonomy term I have a field called paragraph reference which the field type is Entity reference revisions and is referencing to the paragraphs I have created. On this taxonomy term page I just want to access this field and print the paragraphs. When I use devel I see these values but I have tried almost everything but cannot seem to access the field in page--taxonomy--term.html.twig . These are the following things that I have tried but getting no result:
{% for item in content.field_paragraph_reference %}
We are working on a website - we want to provide the theme(front-end UI) also want to implement some backend features with theme only. Is it possible ?
Use case: We are building a theme for a Critical Website. We want to create custom content type for our Website project. This can be implemented easily through Module. But we want to implement this only thgouh the theme.
Is the above scenario possible.
Along with the above requirement - we are looking for to create(implement) module features only through theme(is it possible).
I have built a basic entity in d8 using drupal console. I am then using a hook_form_alter to add some additional front-end fields to the form. These fields aren't functional on the back-end, but do some front-end stuff.
Either way, I then made a hook_preprocess_form in my theme like this: