This forum is for assistance with theme development.

Post layout

Is there a good way to set layout for a node right on add/edit node page?

For example I have 3 layouts: Left Sidebar - Node Content, Right Sidebar - Node Content, Left Sidebar - Content - Right Sidebar.

I know the way to do it by creating different content types and every content type will have it's own layout.

Getting form input type in the label template

Is there a way to get the input type available as a variable inside the form-element-label.html.twig template in Drupal 8? I've been looking around for a while with no solution. I assume I need to use the template_preprocess_form_element_label function, but I can't figure out how. What I'm really trying to do is have different templates for labels based on what type of input it is.

Themes that have multiple selection filtering

I am looking for either free or purchasable themes for drupal that have a very good and stylish multiple selection filtering using tags or taxonomy. Of course, I can build something from the ground up but we are on a tight turn around. I thought this theme would work:

http://demos.doublemthemes.com/xpalladium/xpalladium/home-variant-8-port...

but it need to be able to filter on multiple tag items, does anyone know any good free themes or that cost money?

My Theme Changes When I Edit

Hello All,

I have been wondering how I can edit my website using the same custom theme that users view it in? Each time I log in and then edit the page or refresh it, the theme changes. It goes from being my customer bartik theme to the regular one. It makes editing very difficult.

For instance, here are two pictures. The first picture shows the view when I am logged out. This would be what a user would see. The second picture shows the view when I'm logged in.

Unexpected content type [RESOLVED]

I use a Drpal Commerce. I was build my own product display type and named it spa. When I tried to use a node--spa.tpl.php Drupal ignored it. When I checked a node type through a node.tpl.php I have found that type set to article. Yes I really have the article type but I never used it.
How to set the node type as the spa and use the node--spa.tpl.php. Why is this substitution of type occurred at all?

Display two blocks in a region

Hello! I use a Drupal 7. I have two blocks in a header region and need to display them like it is shown in a code below

Pages

Subscribe with RSS Subscribe to RSS - Theme development