Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2213

Templates for Joomla! 4.x • Remove Tags from Category Blog View Only

$
0
0
So I have a few menu items that display Articles: Category Blog view Example Here

As you can see, the tags are displayed under the details for each article.

Tags are also displayed in single article view Example Here (Tags Display is set to "split" so they appear at the bottom of the article).

Is there a way to turn them off for the Category Blog view only? I had done this on a previous template with an override to the blog_item.php file within the template structure and removing the following code:

Code:

<?php if ($info == 0 && $params->get('show_tags', 1) && !empty($this->item->tags->itemTags)) : ?>        <?php echo LayoutHelper::render('joomla.content.tags', $this->item->tags->itemTags); ?>    <?php endif; ?>
However, the only similar file I can find with J4 and Cassiopeia is located in

Code:

components/com_content/tmpl/category/blog_item.php
I'm hoping there's a more simple way to do this in J4 via admin if possible?

Statistics: Posted by DJBenz — Fri Feb 09, 2024 12:22 pm



Viewing all articles
Browse latest Browse all 2213

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>