×
Kunena 5.1 RC 3 Released (16 Feb 2018)

The Kunena team is proud to announce the arrival of Kunena 5.1.0 RC3 [K 5.1.0] which is now available for download as a native Joomla extension for J! 3.8.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1. This is a RC release.

Solved Overriding templates

More
1 year 5 months ago #1 by ArnoBrinkman
ArnoBrinkman created the topic: Overriding templates
I've seen this question here before, but no answer so far.
Is this currently already possible?

I've found this in the README.md from templates:

Template file overrides are searched in the following order (assuming they extend Crypsis):

- ./templates/[JOOMLATEMPLATE]/layouts/com_kunena/[TEMPLATE]/topics/default.php (TODO)
- ./components/com_kunena/template/[TEMPLATE]/layouts/topics/default.php
- ./templates/[JOOMLATEMPLATE]/layouts/com_kunena/crypsis/topics/default.php (TODO)
- ./components/com_kunena/template/crypsis/layouts/topics/default.php
- ./templates/[JOOMLATEMPLATE]/layouts/com_kunena/topics/default.php (TODO)
- ./layouts/com_kunena/topics/default.php (TODO)

But no further explanation

[url=""http://www.tradingtalk.nl]TradingTalk[/url]

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

More
1 year 5 months ago #2 by Riba
Riba replied the topic: Overriding templates
Hey Arno,

I was also wondering about this here:

www.kunena.org/forum/k5-0-support/138325...om-template-handling

However you are a step ahead as I did not read the README.md which suggests that the behavior I was expecting is supposed to be there. However I did a quick test by removing the layouts and pages from mt custom template which completely borked it. Maybe it is supported for layouts only, I will run further tests after learning this.

If the README is correct, the overrides will be picked up from your kunena template layouts directory, but not from the Joomla template (yet). If not present it will revert to the crypsis one.

We love stars on the Joomla Extension Directory .

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

More
1 year 5 months ago #3 by 810
810 replied the topic: Overriding templates
Yes, the readme is correct.

Its works just like the old override, but only layouts like:
\yourtemplate\html\com_kunena\crypsis\layouts\message\item\default.php

Your feedback on the JED helps us improve Kunena!

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

More
1 year 5 months ago #4 by Riba
Riba replied the topic: Overriding templates
Thanks for clarifying!

We love stars on the Joomla Extension Directory .

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

More
1 year 3 months ago #5 by achartier
achartier replied the topic: Overriding templates
I found the info provided by 810 to be slightly incorrect. The correct path should be:
\yourtemplate\html\com_kunena\layouts\message\item\default.php

You do not specify the Kunena template name in the path. At least it worked this way for me.

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.077 seconds