I got put in the template k2 "grups" the section related items by tag.
The point is I'm trying to modify part of the code to see put in this tag in the article to appear, I want to in Article 332 the only remove the Article ID i look at all the items that have the tag 332 i list. Not if you understand me.
- Code: Select all
<?php if($params->get('itemRelated') && isset($this->relatedItems)): ?>
<div class="itemAuthorContent">
<h3><?php echo JText::_("K2_ALBUMS"); ?></h3>
<ul data-cols="<?php echo count($this->relatedItems); ?>">
<?php foreach($this->relatedItems as $key=>$item): ?>
<li class="<?php echo ($key%2) ? "odd" : "even"; ?>">
<?php if($this->item->params->get('itemRelatedImageSize')): ?>
<a class="itemRelTitle" href="<?php echo $item->link ?>"><img style="border-radius: 50%;width:<?php echo $item->imageWidth; ?>px;height:auto;" class="itemRelImg" src="<?php echo $item->image; ?>" alt="<?php K2HelperUtilities::cleanHtml($item->title); ?>" /></a>
<?php endif; ?>
<a class="itemRelTitle" style="font-family: 'Raleway', Arial, sans-serif;" href="<?php echo $item->link ?>"><?php echo $item->title; ?></a>
</li>
<?php endforeach; ?>
</ul>
</div>
<?php endif; ?>
http://infogaming-es.esy.es/grups/item/332-aspencat
That is, in the item "332" all the items that contain a tag that is the ID number of the article in this case "332" 332 but the item does not contain that tag appear. And what I failed to do