Keyword

Problem with front end templates after update

  • Chris
  • Chris's Avatar Topic Author
  • Offline
  • Junior Member
More
5 years 11 months ago - 5 years 11 months ago #170645 by Chris
Hi,
I've just updated to 2.9.0 version and I face a problem:
The templates I've made for frontend inserting k2 items, are not loaded. They are visible and can be selected at menu link template, but the default tempate is loaded instead.
Pls help.

Chris

Additional info
I've tried
1. Fresh Joomla 3.9 installation, default Breez template
2. Fresh Joomla 4 (development) installation, default Breez template

The problem remains!!
Something wrong with K2 2.9 code??
Pls help!!
Last edit: 5 years 11 months ago by Chris.

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

More
5 years 11 months ago #170679 by JoomlaWorks
Replied by JoomlaWorks on topic Problem with front end templates after update
For starters, K2 is not tested with Joomla 4.

Secondly, if you refer to a custom frontend editing form (the itemform.php file) there have been quite a few changes in the stock template (we basically re-use the same file from the backend). If that's the case, simply copy the contents of the file included in the default itemform.php file in K2's templates and adjust accordingly.

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

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

  • Chris
  • Chris's Avatar Topic Author
  • Offline
  • Junior Member
More
5 years 11 months ago #170691 by Chris
Fotis, the problem is that whatever template I choose, The default template is loaded.

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

More
5 years 10 months ago #170737 by JoomlaWorks
Replied by JoomlaWorks on topic Problem with front end templates after update
Does the default template at least work properly for you?

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

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

  • Chris
  • Chris's Avatar Topic Author
  • Offline
  • Junior Member
More
5 years 10 months ago #170783 by Chris
Yes, the default template is working, but I need to change it. There must be 3-4 customized templates according to front end user.

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

More
5 years 10 months ago #170802 by JoomlaWorks
Replied by JoomlaWorks on topic Problem with front end templates after update
If you already have different subtemplates per K2 category, then simply copy itemform.php inside each /template/YOUR_TEMPLATE/html/com_k2/subtemplateX/ folder, fill the contents of the file with what's in "/administrator/components/com_k2/views/item/tmpl/default.php" and modify as you wish.

When you're in the right category loading the respective subtemplate in K2 and hit to edit some item, it should load the customized itemform.php layout in that subtemplate.

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