Keyword

Custom template for Tag view.

  • Huub van der Logt
  • Huub van der Logt's Avatar Topic Author
  • Offline
  • New Member
More
10 years 2 months ago #130334 by Huub van der Logt
Custom template for Tag view. was created by Huub van der Logt
Hello,

I made K2 Tools modules, one with Search and one with a Tag view.
Both result in a view that is one column and a (long) list of items.

I did read somewhere that i need to make a template override. The good thing is that my template already has overrides ... also the one i want to use for the K2 Tools results.

My first question is ..... where can i set the template i want to use, there is no select option in K2 Tools as far as i can see.

My second question is this .....

I made a menuitem that should show K2 items based on a Tag. This works but also doesnt show them in the template i want and that i selected there in the menu-settings. It keeps showing the items in one long list here also.

Thanks in advance for any help!

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 2 months ago #130335 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Custom template for Tag view.
This post will get you started: nuevvo.com/blog/item/84-k2-inheritance-sub-templating .

Now to manually assign a new template to a specific tag you need to create a menu item for it. Tags will render by default with the template that currently in use.

As for you second question, once you set up a new K2 template you can assign it from your menu item.

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

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

  • Huub van der Logt
  • Huub van der Logt's Avatar Topic Author
  • Offline
  • New Member
More
10 years 2 months ago #130336 by Huub van der Logt
Replied by Huub van der Logt on topic Re: Custom template for Tag view.
Thanks for your reply, but i already did read that post and i do know how to make a Tag-menu item and assign a template to it.

But ......

If i make a menuitem for a certain K2-Tag, then choose a custome template from the dropdownlist for it, it still isnt used in the front end.

I want the Tag display to be the same as the Category display ...... but no matter what template i choose it keeps showing the one column display in the frontend.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 2 months ago #130337 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Custom template for Tag view.
Tags will always render in a one columned layouts.
You need to manually edit your tag.php file.

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

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

  • Huub van der Logt
  • Huub van der Logt's Avatar Topic Author
  • Offline
  • New Member
More
10 years 2 months ago #130338 by Huub van der Logt
Replied by Huub van der Logt on topic Re: Custom template for Tag view.
Then i really dont understand why you can select a template when making the K2 Tag-item menu-item, if it isnt used anyway.

But it seems the whole Tag-item idea isnt of any use then to me, i prefer to have a similar appearance of items on my website. I use K2 with K2Store and have lots of products displayed in rows with each 3 columns. If i cant get the Tag results show in the same way then i will look for another solution.

Thanks for your help.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 2 months ago #130339 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Custom template for Tag view.
As I already told you, the column settings apply to the categories only.
Since you have overriden your tag layout, you can manually add grid classes.
K2 Store is using Bootstrap (I think) so you can use its classes without having to write any CSS code.

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