This forum is for assistance with theme development.

taxonomy for only one vocabulary

Hello,

thank's first to help me.

Taxonomy view help me to show in a personal page all my articles put in a taxonomy tree.

But I would like to have specific behavior for a given vocabulary. So for this one to remove it from the default taxonomy view and make it a special one.
how to exclude this vocabulary from the first and create another only for it.

thank's

yo

Displaying content from field with multiple values

Hi! I'm quite new to drupal 8 and twig, but this is something I thought would be rader easy to do, but I still struggle with.

I have a node type curriculum with two entity reference fields called 'optional' and 'mandatory'. Each of these reference fields contains a list of nodes. In the template, '{{ content }}' displays the entities together and not separates like I want to display it. I thought I could just write {{ content.field_mandatory }} and {{ content.field_optional }} to display them separately, but this shows nothing.

What am I missing here? 

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.

Pages

Subscribe with RSS Subscribe to RSS - Theme development