This forum is for assistance with theme development.

All dynamic pages always render the same template

Hi,

My environment is Drupal 8.3.7. I encounter a problem that all dynamic pages always render the same template if the user doesn't log in. If the user has logged in, every dynamic page works well. Below is my structure.

/theme/my_theme/templates/abc/path1/page--abc--path1.html.twig
/theme/my_theme/templates/abc/path2/page--abc--path2.html.twig
/theme/my_theme/templates/abc/path3/page--abc--path3.html.twig

Block template is not extending in custom theme

  1. Created a testing twig templates in the same folder.
  2. Written down the code definition of block in testing block template.
  3. Called the extends in the article template for inheriting the testing block template content.
  4. And finally the error is coming "A template that extends another one cannot have a body"

Any Suggestion where am i going wrong.

A Href in .Theme Hosing Site

<?php
<?php

?>
?>

Hey all,

Looking to wrap a set of divs with an a href referring to the resource URL. Doing so currently hoses our entire site. Thoughts?

Problem exposing variables via TWIG node

So I have a content type which is also an Ubercart product.
On my home development site I have made exactly the same content type and have used a TWIG template to layout the variables as I want them with some other divisions I require on the page.
On my production page (on public server) is behaving differently.
The 'label' variable does show though the shirt images do not though they do if I just use the standard node twig file. So the new node layout with the heading appears though no pictures or the add to cart button or attributes selections.

Template overriding not working...

Having twig debug mode enabled; Am trying to override the template file of node type "article"Image 1
I had done the changes and added the file as per theme suggestion in my own custom theme but the changes are not reflecting (it is still taking template file from my base theme); I had rebuild the cache after doing changes.
Only local images are allowed.

Display multiple image of a field in content / node in grid view

Hello,

I'm working on a website using Drupal 8 with Gavias Sandbro theme. Currently I want to make photo album. I have a content with image field that supports multiple images to be loaded working together with colorbox. Unfortunately the image is displayed in vertical views which I want to be in grid view, I already refer to this post and try to add custom css but didn't work likely because of different version of drupal.

The source output is as follow:

Pages

Subscribe with RSS Subscribe to RSS - Theme development