Help change code related items by tag
- GK User
- Tue Jul 28, 2015 10:20 pm
Good morning,
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.
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
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
-

- Senior Boarder
- teitbite
- Thu Jul 30, 2015 1:13 pm
Hi
I'm sorry, but I do not understand. Do You mean to show more related by tags items ? It can be done in category setting.
I'm sorry, but I do not understand. Do You mean to show more related by tags items ? It can be done in category setting.
-

- Moderator
- GK User
- Sat Aug 01, 2015 9:45 am
Yes, that is correct but it would be easier for me to put it directly in this type of content because I would like it to appear so , I could not otherwise adapt
Anyone have an idea of how it could do as I say ?
Anyone have an idea of how it could do as I say ?
-

- Senior Boarder
- teitbite
- Sun Aug 02, 2015 9:34 pm
Hi
I think You should contact K2 support for this. I can only help You with our products. Sorry.
I think You should contact K2 support for this. I can only help You with our products. Sorry.
-

- Moderator
4 posts
• Page 1 of 1
