This forum is for assistance with theme development.

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.

Drupal 8 Images not showing - "Drupal 8 Theming with Twig"

If you try to view an image with the browser, you can see it at:
localhost/mysite/sites/default/files/image.jpg

But drupal is pointing to
localhost/sites/default/files/image.jpg and the subdirectory is being left out?

My images are not showing.

http://localhost/sites/default/files/inline-images/home-office.jpg <-- the image doesn't show

when it should be:

Pages

Subscribe with RSS Subscribe to RSS - Theme development