jrCore_list template reference

blindmime
@blindmime
10 years ago
772 posts
I had this on my home page on a sitebuilder jamroom site:
{jrCore_list module="jrAudio" order_by="_created random" template="item_list_name.tpl" limit="1"}
It lists a random song title.

Suddenly today it began looking for the template in the skin directory and produced a template not found error on my home page. If I put the template in the skin directory, nothing is produced. Probably need to add the additional code to reference _item.

But I'm wondering why it's not looking in jrAudio for the template all of sudden.
updated by @blindmime: 12/22/16 11:55:59AM
paul
@paul
10 years ago
4,335 posts
Rename the template in the active skin folder to jrAudio_item_list_name.tpl and it should work.
hth


--
Paul Asher - JR Developer and System Import Specialist
blindmime
@blindmime
10 years ago
772 posts
That doesn't work.

I'm wondering why it's not looking in jrAudio for the template all of sudden.

jrAudio_item_list_name.tpl is:
<a href="{$jamroom_url}/{$item.audio_url}/">{$item.audio_title}</a>

updated by @blindmime: 03/22/15 02:21:33PM
SteveX
SteveX
@ultrajam
10 years ago
2,584 posts
Jamroom looks in the skin directory first (to check for overrides).

If you place jrAudio_item_list_name.tpl in your active skin directory jrAudio will use that template before checking if item_list_name.tpl exists in the module directory.


--
¯\_(ツ)_/¯ Education, learning resources, TEL, AR/VR/MR, CC licensed content, panoramas, interactive narrative, sectional modules (like jrDocs), lunch at Uni of Bristol. Get in touch if you share my current interests or can suggest better :)
blindmime
@blindmime
10 years ago
772 posts
Yes, the reason for this thread is that Jamroom has suddenly, for some reason, stopped looking in the module templates folder for this template which is where it's been and was working fine. It was working and then stopped working. My question is why?

Tags