solved Including templates in a module file

gary.moncrieff
gary.moncrieff
@garymoncrieff
9 years ago
865 posts
Hey Guys

I am currently working on a new module for the site, which I may some day stick in the marketplace.

How does one do a jrcore_include when the template is in the modules folder and not the skins, am I missinng something obvious here?
updated by @garymoncrieff: 08/03/15 02:50:28PM
paul
@paul
9 years ago
4,326 posts
Set the module parameter to your module -

{jrcore_include module="gmMyModule" . . . }

hth


--
Paul Asher - JR Developer and System Import Specialist
gary.moncrieff
gary.moncrieff
@garymoncrieff
9 years ago
865 posts
Thanks Paul, knew it was something simple.
michael
@michael
9 years ago
7,715 posts
and just to add to that, if your wanting to use jrCore_list and use a template from a module you can use 'tpl_dir='

eg:
{jrCore_list module="jrAudio" template="sometemplate.tpl" tpl_dir="myModule"}

That will look for sometemplate.tpl in
/modules/myModule/templates/sometemplate.tpl

instead of the current skin.

Tags