- Posts: 42
COMMUNITY FORUM
mod_k2_content: sub-template parameter
- juro
-
Topic Author
- Offline
- Senior Member
Less
More
15 years 3 months ago #78661
by juro
mod_k2_content: sub-template parameter was created by juro
Hi,in the
mod_k2_content module there is a parameter "Select sub-template".Is this related to the actual template as configured in K2?If this relates to the module itself, how can I add other views to the module?Thank you for your input!
mod_k2_content module there is a parameter "Select sub-template".Is this related to the actual template as configured in K2?If this relates to the module itself, how can I add other views to the module?Thank you for your input!
Please Log in or Create an account to join the conversation.
- juro
-
Topic Author
- Offline
- Senior Member
Less
More
- Posts: 42
15 years 3 months ago #78662
by juro
Replied by juro on topic mod_k2_content: sub-template parameter
Answering my own question.
Adding custom mod_k2_content templates
in /modules/mod_k2_content/tmpl create a new folder with a descriptive name
copy /modules/mod_k2_content/tmpl/Default/default.php into the new folder
adjust the new default.php
In the backend, select the module and select the new template from the drop-down list.
Adding custom mod_k2_content templates
in /modules/mod_k2_content/tmpl create a new folder with a descriptive name
copy /modules/mod_k2_content/tmpl/Default/default.php into the new folder
adjust the new default.php
In the backend, select the module and select the new template from the drop-down list.
Please Log in or Create an account to join the conversation.
- jem
-
- Offline
- New Member
Less
More
- Posts: 3
15 years 1 month ago #78663
by jem
Replied by jem on topic mod_k2_content: sub-template parameter
I would have thought this field would select the sub-template under the site's template per MVC template overrides. But what you write makes sense as how is the k2_content module to know what the site template would be?
Thanks for the clue. Jon
Roland Jungwirth said:Answering my own question.
Adding custom mod_k2_content templates
in /modules/mod_k2_content/tmpl create a new folder with a descriptive name
copy /modules/mod_k2_content/tmpl/Default/default.php into the new folder
adjust the new default.php
In the backend, select the module and select the new template from the drop-down list.
Thanks for the clue. Jon
Roland Jungwirth said:Answering my own question.
Adding custom mod_k2_content templates
in /modules/mod_k2_content/tmpl create a new folder with a descriptive name
copy /modules/mod_k2_content/tmpl/Default/default.php into the new folder
adjust the new default.php
In the backend, select the module and select the new template from the drop-down list.
Please Log in or Create an account to join the conversation.
- dacio
-
- Offline
- New Member
Less
More
- Posts: 4
14 years 5 months ago #78664
by dacio
Replied by dacio on topic mod_k2_content: sub-template parameter
thank you for solution!
Roland Jungwirth said:Answering my own question.
Adding custom mod_k2_content templates
in /modules/mod_k2_content/tmpl create a new folder with a descriptive name
copy /modules/mod_k2_content/tmpl/Default/default.php into the new folder
adjust the new default.php
In the backend, select the module and select the new template from the drop-down list.
Roland Jungwirth said:Answering my own question.
Adding custom mod_k2_content templates
in /modules/mod_k2_content/tmpl create a new folder with a descriptive name
copy /modules/mod_k2_content/tmpl/Default/default.php into the new folder
adjust the new default.php
In the backend, select the module and select the new template from the drop-down list.
Please Log in or Create an account to join the conversation.
- Odin Mayland
-
- Offline
- Platinum Member
Less
More
- Posts: 404
12 years 2 months ago #78665
by Odin Mayland
Replied by Odin Mayland on topic Re: mod_k2_content: sub-template parameter
Old topic, but I would recommend putting all subtemplate info in your template folder instead of the modules folder.
The path would be:
/templates/yourtemplatename/html/mod_k2_content/subtemplatename/default.php
The path would be:
/templates/yourtemplatename/html/mod_k2_content/subtemplatename/default.php
Please Log in or Create an account to join the conversation.