This forum is for assistance with theme development.

How to get field values from view to use in template using TWIG

I've figured out how to to get field values in a regular block template: {{ content['#block_content'].field_name.value }}

But, I'm having the hardest time figuring out how to get the field values to use in a views template. I know it's somewhere in the rows variable, but am having trouble. devel and kint() are not helping.

What am I missing?

Thanks,
Greg

Disable Twig template cache

I'm trying to dive into Drupal 8 Twig templating. My problem is that I need to clear Drupals caches every time I have made a change, even after disabling caches with Drupal Console ('drupal site:mode dev').

Render a region within a region

Does anyone know of a way to render a region inside of a region? What I'm trying to do is have footer that is rendered as a block in a region and then have another region embedded into the footer where I inject other blocks. For example, a contextual legal statement that changes but a footer that is consistent across pages.

How do I modify my content type's add and edit form in Drupal 8?

I have searched for a solution to this but haven't been able to find one. I am using Drupal 8 and would like to have my users create nodes from a specific content type.

I have managed to create a template override for my "Auto" ("Car") content type by creating "page--node--add--auto.html.twig" but I am having a bit of trouble modifying the edit form. I would like to create columns for the fields (for which I am using Bootstrap) and style the form according to my needs.

Custom footer behaviour

Dear all,
I would like to create a custom behaviour for a footer menu. I'm using Drupal 8.

Basically I have a block called "Footer". Inside that block I have to put an arbitrary number of columns (1 to 5) containing a list of links (menu), a title and an icon.
So, each column has a title and a reference to a specific CSS class to select an icon, plus a reference to a list of links (a menu).

Unable to use Portfolio Zymphonies Theme

Hello there,

I am building a portfolio website in Drupal 7. I like Portfolio Zymphonies Theme and want to use this theme. The demo of this theme is available here.

Pages

Subscribe with RSS Subscribe to RSS - Theme development