Keyword

mod_k2_content: sub-template parameter

  • juro
  • juro's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 8 months ago #78661 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!

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

  • juro
  • juro's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 8 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.

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

More
14 years 6 months 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.

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

More
13 years 10 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.

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

More
11 years 7 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

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


Powered by Kunena Forum