Keyword

k2 breadcrumbs and tags

  • Adi Plaut
  • Adi Plaut's Avatar Topic Author
  • Offline
  • New Member
More
8 years 9 months ago #149921 by Adi Plaut
k2 breadcrumbs and tags was created by Adi Plaut
Hi there,

When I am using the k2 tools module to show breadcrumbs in menu item type "tag" I get an added item in the breadcrumbs.
instead of showing: Home > Tags
I shows: Home > Tags > [tag name]

How can I fix this?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 9 months ago #149924 by Krikor Boghossian
Replied by Krikor Boghossian on topic k2 breadcrumbs and tags
Hello,

This is K2's default behaviour. You can override the mod_k2_tools module (breadcrumb.php) but it will strip the last segment of the breadcrumbs for all of K2 (items, categories etc)

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

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

  • Adi Plaut
  • Adi Plaut's Avatar Topic Author
  • Offline
  • New Member
More
8 years 9 months ago #149932 by Adi Plaut
Replied by Adi Plaut on topic k2 breadcrumbs and tags
OK, is there a way to change it without removing the last segment in the entire website?

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 9 months ago #149941 by Krikor Boghossian
Replied by Krikor Boghossian on topic k2 breadcrumbs and tags
It could be done via an override.
Take a look at this: github.com/kricore/Advanced-templating-with-K2/blob/master/_inc/cheatsheet.php#L27-L36

You can check if the $option is indeed com_k2 and the $view is a tag view.
In the override, based on that check you can leave out the last segment in that view.

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

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

  • Adi Plaut
  • Adi Plaut's Avatar Topic Author
  • Offline
  • New Member
More
8 years 9 months ago #149976 by Adi Plaut
Replied by Adi Plaut on topic k2 breadcrumbs and tags
Thanks for the idea. that did the trick.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 9 months ago #149979 by Krikor Boghossian
Replied by Krikor Boghossian on topic k2 breadcrumbs and tags
You 're welcome Adi :)

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

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


Powered by Kunena Forum