logo

Extra Block Types (EBT) - New Layout Builder experience❗

Extra Block Types (EBT) - styled, customizable block types: Slideshows, Tabs, Cards, Accordions and many others. Built-in settings for background, DOM Box, javascript plugins. Experience the future of layout building today.

Demo EBT modules Download EBT modules

❗Extra Paragraph Types (EPT) - New Paragraphs experience

Extra Paragraph Types (EPT) - analogical paragraph based set of modules.

Demo EPT modules Download EPT modules

Scroll

Two different styles of displaying announcements for the same article when shown in a block and on a page.

22/02/2025, by Anonymous (not verified)

I have a question regarding the implementation of the concept. The content type "Article" has its own standard teaser, which is defined in the file node.tpl.php. There is a taxonomy term that is displayed on the page through a views-block as a list of teasers.

How can I change the style of the teasers displayed in the block? The design difference lies in the fact that when creating the content, a CCK field with a different image has been created for the teasers in the block, which should only be displayed in the teasers that are in the block.

Theoretically, I understand that I need to add a condition in node.tpl.php to show a specific version in the block and if not, then the "regular version".

 

Is it possible to define a variable to determine whether the teaser is being displayed in the block or not?
Can you suggest a way to implement two different types of teasers for the same article, both inside and outside the block?