This forum is for assistance with theme development.

Dynamically set attributes to blocks

I have some blocks that I want to have the same bootstrap classes set in twig. The common element is that they are all set in one region. I thought I could use the twig dump() to see how I could test for this region but I haven't found it yet. I'm looking at the block attributes themselves to find a common attribute that could be tested. Something I could add to $variables in a theme_preprocess_block() function perhaps? 

print render($content); process order & order alteration

Hello.

I had my D7 installation themed and running and added a module (Smart Paging) that splits & 'paginates' a node. That means that within the node, at the bottom of each split bit, a 'Previous - Next' menu is added. And that is now breaking the way my pages are showing.

In my template file I added (PHP) the formatted date

print format_date($node->created, 'article');

right after the

Working with exception template

Hello, I'm working with the template exception.

My intention is to modify the view of recent projects (the type of content that works are portfolios) to work with articles.

Well, I always miss error because I suppose that internally works with certain fields that are not in articles.

What I can do? https://i.imgur.com/s7QpGHN.png (error image)

Problem with theme caching

I have views that output an unformatted list from the teaser news template. I named them(template) node--news--teaser.html.twig
But when on the production server the editor(user) publishes the news with the help of the scheduler through the cron, some teaser news in this list(views) does not use a custom template but uses the default(unformatted views-view-unformatted.html.twig) template.

Superfish sub menu

I am using superfish menu but the drop down for each main menu link it is not under the main buttons.

They all drop down to the left of the menu. How can I make them drop down under the main link.

http://cbaptist.cyclonewebdesign.net/

Default image tpl

Hi!

I'm trying to customize an image field for my content type, but i can't find where default image tpl is.

usually for views and blocks i clone the default tpl (for example: views-view.tpl.php) and i modify it renaming and editing the file content, but i can't find the same file for images field.

in particular what im trying to do is create a custom image field tpl for my content type and printing the image and the alternative text with some container div.

thanks in advance, hoping this is clear.

Pages

Subscribe with RSS Subscribe to RSS - Theme development