This forum is for assistance with theme development.

Debugging Variables

Good Morning All,
Is there any way to debug variables in Drupal 8 twig templates or module files?
I have checked debug and kint but they very poor.
In Drupal 7 I used dpm, kpr, dvm, dsm and they were more than enough.
Thanks in advance

What is your preferred visual CSS editor and why?

What is your preferred visual CSS editor and why?

I'm currently using a visual CSS editor called stylizer.

What are your opinions regarding alternatives, and what comparisons would you make from them to stylizer for css editing with visual feedback?

Implement hook_theme_registery_alter()

Hi,

I'd like to override the template from the custom_search's module (custom_search-results.tpl.php).
The custom search module is in this folder: sites/all/modules

I followed these steps:

1) I copy the default template into a templates folder that I created: sites/all/modules/custom_search/templates.,

2) I modify my own custom_search-results.tpl.php file as I enjoy it.

3) I implement hook_theme_registery_alter() using this code in my subtheme template.php file (the path folder is: sites/all/theme/MYTHEME_SUBTHEME)

Submenus not expanding

We are using Drupal 8.

We have a menu with several top level items and then sub-menus under each element.

All the children for a given parent should expand when the parent is selected.

It works... most of the time then some times it does not... I can see no pattern to it. Clearing the site cache usually fixes it for a period but then the problem will return.

Sometimes it will take days to reoccur other times it will take 5 min.

responsive from html list to dropdown

Hi,

I trying to finding my way around in drupal.

I've got a page view with a view attachment to filter on the "product type" field of a "product" content type.
The filters is shown as a HTML list with css class (bootstrap class).
The filter works fine on the page but if i go to a mobile resolution, the HTML list must be shown as a drop down, not as a whole list of links.

A implemted already bootstrap to have already the necessary css content.
But how can i change the html list to a button with a dropdown menu at a certain breakpoint.

Embed forum in a node

Hi,

I'm trying to set up a forum and display it on a custom node template page. Is it actually possible to embed a forum in custom node--tpl.php files?

Or is there a better way to achieve this by modifying the forum itself?

Pages

Subscribe with RSS Subscribe to RSS - Theme development