Keyword

force template of item view

  • Com3elles
  • Com3elles's Avatar Topic Author
  • Offline
  • New Member
More
4 weeks 2 days ago #177303 by Com3elles
force template of item view was created by Com3elles
Hello how i can force specifi item template for a item in a specific category ?
i need to do this because item template is herit by category and i need to choose different template for item ...
thanks for all

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
4 weeks 2 days ago #177313 by Fotis
Replied by Fotis on topic force template of item view
It's not possible. It's really an edge case.

What you can do is create a sub-category, place the item there and then change the assigned sub-template to whatever you like.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • Com3elles
  • Com3elles's Avatar Topic Author
  • Offline
  • New Member
More
4 weeks 2 days ago #177322 by Com3elles
Replied by Com3elles on topic force template of item view
but sub category will be in breadcum ect ...
maybe i can mix 2 templates in 1
how i can check the mother category
Mother Cat
|_ sub cact
|_sub sub cat
Maybe i can check if item is in mother cat and set template ...
Can you help me for checking ?
regards

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
4 weeks 1 day ago #177330 by Fotis
Replied by Fotis on topic force template of item view
Within your item.php override, check for the category ID or name ($this->category->id or $this->category->name).

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum