Keyword

k2 tools tag

  • claudio
  • claudio's Avatar Topic Author
  • Offline
  • New Member
More
8 years 2 months ago #150922 by claudio
k2 tools tag was created by claudio
HI
I have some categories
cat1
-cat1_A
-cat1_B
cat2
-cat2_A
-cat2_B
In my module settings I selected just cat1, cat1_A and cat1_B
in my tag cloud I see my tags... ok
but If I click on a tag in article list for the selected tag i see also articles from cat2 and sons.

I'm doing something wrong?
thanks

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #150929 by Krikor Boghossian
Replied by Krikor Boghossian on topic k2 tools tag
If the an article has been tagged with that certain tag it will appear on that menu item regardless of that category.

The options you changed are only for the module, they do not affect the tag item listings.

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

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

  • claudio
  • claudio's Avatar Topic Author
  • Offline
  • New Member
More
8 years 2 months ago #150933 by claudio
Replied by claudio on topic k2 tools tag
ok

What can I do to obtain an item listing only for categories selected in that tag module?

thank you

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #150934 by Krikor Boghossian
Replied by Krikor Boghossian on topic k2 tools tag
This would have to be a custom implementation.
You could set a querystring with the name of the category or some other value from the module's parameters ($param) at the link.

Then using PHP's GET - php.net/manual/en/reserved.variables.get.php you can read this variable and on your template exclude some items.

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

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

  • claudio
  • claudio's Avatar Topic Author
  • Offline
  • New Member
More
8 years 2 months ago #150936 by claudio
Replied by claudio on topic k2 tools tag
hmm....
I have to modify ...doing an override of

root/module/mod_k2_tools/tmpl/tags.php
and
root/components/com_k2/views/itemlist/tmpl/tag.php

but ...how modify it to my situation?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #150937 by Krikor Boghossian
Replied by Krikor Boghossian on topic k2 tools tag

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

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

  • claudio
  • claudio's Avatar Topic Author
  • Offline
  • New Member
More
8 years 2 months ago #150941 by claudio
Replied by claudio on topic k2 tools tag
thank you for your link.

override is not a problem.

my problem is about the code I have to create to obtain my itemlist filtered by categories used in tag cloud

thanks

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

  • claudio
  • claudio's Avatar Topic Author
  • Offline
  • New Member
More
8 years 2 months ago #150945 by claudio
Replied by claudio on topic k2 tools tag
Krikor
Can you help me to create this custom implementation?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 2 months ago #150948 by Krikor Boghossian
Replied by Krikor Boghossian on topic k2 tools tag
Sure, have you created anything?

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

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

  • claudio
  • claudio's Avatar Topic Author
  • Offline
  • New Member
More
8 years 2 months ago - 8 years 2 months ago #150950 by claudio
Replied by claudio on topic k2 tools tag
I don't know how start..

mdodule: I think I have to send categories of every tag? it's correct?

this is the link from k2 tools tags.php
<a href="<?php echo $tag->link; ?>" style="font-size:<?php echo $tag->size; ?>%" title="<?php echo $tag->count.' '.JText::_('K2_ITEMS_TAGGED_WITH').' '.K2HelperUtilities::cleanHtml($tag->tag); ?>">
		<?php echo $tag->tag; ?>
	</a>
Last edit: 8 years 2 months ago by claudio.

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


Powered by Kunena Forum