solved Use Module Template File in jrCore_list

PatriaCo
PatriaCo
@the-patria-company
6 years ago
349 posts
How can I use a .tpl from a module in a jrCore_list call?

{jrCore_list module="jrProfile" search1="...   ...template="example.tpl"}

Using this version, the .tpl file must be located in the skin directory. When I update the skin the file is removed. In order to avoid this down-time I would like to call a template directly from my custom module.

What param should I add to make this work?


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3

updated by @the-patria-company: 01/19/19 09:52:20PM
brian
@brian
6 years ago
10,136 posts
No - you cannot pull from a module directory. You need to clone the skin:

https://www.jamroom.net/the-jamroom-network/documentation/skin-design-guide/839/creating-your-own-skin-clone-from-an-existing-skin


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
brian
@brian
6 years ago
10,136 posts
Actually this IS supported with the tpl_dir param - i.e.

{jrCore_list module="jrProfile" template="example.tpl" tpl_dir="xxCustomModule" ... }

I would still recommend cloning your skin as that is the "correct" way to do it.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
PatriaCo
PatriaCo
@the-patria-company
6 years ago
349 posts
Thank you!


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3

Tags