Keyword

Display tags in generic view (generic.php)

  • Jan Lehnhoff
  • Jan Lehnhoff's Avatar Topic Author
  • Offline
  • New Member
More
13 years 10 months ago #90799 by Jan Lehnhoff
Display tags in generic view (generic.php) was created by Jan Lehnhoff
Hi,on a website with a few hundred articles I'm using both category views and tag views.When I'm using tag view (generic.php) I just can't figure out how to show tag names and links as in category view (category_item.php).I took a look at the $item-object via print_r in generic.php and at $this->item in category_item.php. The $item-object in generic.php is missing the [tags]-array and I just can't figure out which file to edit to get the tags-array to this object.I found some discussions in this forum which are pretty near to my problem but there was no solution.Is there anyone who can bring any light to this matter?Thanks big time in advance.Regards, Jan

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

More
13 years 10 months ago #90800 by Jiliko.net
Replied by Jiliko.net on topic Display tags in generic view (generic.php)
Hi Jan,

In attachment the code to add to the K2 generic.php template file to add item tags.

Add the code where you want between the 'foreach' and 'endforeach' php code.

Olivier
Attachments:

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

  • Jan Lehnhoff
  • Jan Lehnhoff's Avatar Topic Author
  • Offline
  • New Member
More
13 years 10 months ago #90801 by Jan Lehnhoff
Replied by Jan Lehnhoff on topic Display tags in generic view (generic.php)
Works like a charm...

Thanks, Olivier!

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


Powered by Kunena Forum