Keyword

force template of item view

  • Com3elles
  • Com3elles's Avatar Topic Author
  • Offline
  • New Member
More
3 years 5 months 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.

More
3 years 5 months ago #177313 by JoomlaWorks
Replied by JoomlaWorks 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.

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

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

  • Com3elles
  • Com3elles's Avatar Topic Author
  • Offline
  • New Member
More
3 years 5 months 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.

More
3 years 5 months ago #177330 by JoomlaWorks
Replied by JoomlaWorks 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).

Fotis / 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