Keyword

[SOLVED] K2 tag (link) by category inside category view option

  • wardog
  • wardog's Avatar Topic Author
  • Offline
  • New Member
More
9 years 2 months ago #136621 by wardog
Hi,

I was wondering if there is a template hack (PHP) or a plugin that allows you to do this:

if I have a category named Category A that has 5 items, and 3 of them are tagged under Tag A as well. Now lets say that Tag A overall has 100 items under it... Is there a way when someone clicks on Tag A (from item view or even from category view) to display only the items belonging to "Category A"??

Im also attaching a screenshot that I created to make myself more clear...

Thank you for your time...

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 months ago #136625 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 tag (link) by category inside category view option
Hello,

Unfortunately this is not possible by default in K2.
You could search at the JED but I do no think this is possible.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
9 years 2 months ago #136633 by alexandria
Hello;
Maybe i am wrong because i am new in k2, or i didn't understood the qiestion but i think i did this with the help of the k2 tool module in clood mode and i have assigned menu item tag to the tag and filtered the category there.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 months ago #136648 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 tag (link) by category inside category view option
You will need one K2 Tools module per category for this.
@Alexandria, wardog was referring to the tags in the category item, which cannot be done.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • wardog
  • wardog's Avatar Topic Author
  • Offline
  • New Member
More
9 years 2 months ago #136653 by wardog
Do you mean via K2 Tools > Tag Cloud? If so, I dont think this is what I want because this will bring tags inside the page... right?
What I want is to bring items belonging only to the parent category, whenever someone clicks on a tag (from category view. Same thing on item view. Now if you click a tag it brings the whole item list belonging to this particular tag (no category relative).

Thank you again for your time.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 months ago #136656 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 tag (link) by category inside category view option
Yes, that is the case. It will display the most popular tags in a module, not where you want them to appear.
For what you want to achieve you either need to use a custom made extension, or look at the JED for an extension.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
9 years 2 months ago #140144 by alexandria
Hello,

Ok i understand now andi think i need it too because right now i hide the tags in the category and items view because i can't filter.
@wardog Sorry, like Krikor said, it will display the tags in a module and not wherre you want ;)
@Krikor yes one K2 tool by category :)

Thanks

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 2 months ago #140159 by Krikor Boghossian
Replied by Krikor Boghossian on topic K2 tag (link) by category inside category view option
I think this cannot be done unless it is a custom implementation.
I suggest that you search the JED for an extension that offers this functionality.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
9 years 2 months ago - 9 years 2 months ago #140262 by alexandria
Hello,
Maybe its possible to assign custom template and create different Menu items and modify the category_item.php of the custom template
<?php foreach ($this->item->tags as $tag): ?>
<?php if ($tag->name == 'surf')
{
$tag->link = 'index.php?option=com_k2&view=itemlist&task=tag&tag='.$tag->name;
$tag->link .= '&Itemid=99999';  
}
?>				 
<li> <a href="<?php echo $tag->link; ?>"><?php echo $tag->name; ?></a> </li>
<?php endforeach; ?>
but it seems a lot of work...
Last edit: 9 years 2 months ago by alexandria.

Please Log in or Create an account to join the conversation.

More
9 years 2 months ago - 9 years 2 months ago #140304 by Lefteris
@alexandria

Unfortunately there is no other way to do this currently.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 9 years 2 months ago by Lefteris.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum