iSkin4 Module Template Override

PatriaCo
PatriaCo
@the-patria-company
8 years ago
349 posts
Hey Nate :)

I am really enjoying the flexibility of having the skin override the module templates, but I ran into a little issue trying to track down the code trail for each module's index.tpl.

After the header.tpl I think your structure is using the module's header.tpl, but... for example, dissecting the jrTags_index page there is code between the Tag module's header.tpl and the jrTags_index.tpl and I can not at all figure out where it is coming from.

<table class="page_content"></table> // I know this is the tabs, but how does it get called?
<div class="block">
     <div class="block_content">


Thanks!


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

updated by @the-patria-company: 11/04/16 05:07:42AM
nate
@nate
8 years ago
917 posts
I get confused myself with jrTags. I'll take a look but I can't guarantee anything.
updated by @nate: 08/05/16 08:31:18AM
PatriaCo
PatriaCo
@the-patria-company
8 years ago
349 posts
Also, I have a few custom modules. Is there a way to override the override? ;)

Or do I need to make a xxCustom_index.tpl and add it to the skin?


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3
nate
@nate
8 years ago
917 posts
Sure, enter your code in the template editor, replacing the old code.
PatriaCo
PatriaCo
@the-patria-company
8 years ago
349 posts
Hey Nate,

Recently Brian helped me through a problem by explaining to me:

Quote:
The profile pages are constructed using:
profile_header.tpl
profile_item_index.tpl (this middle template changes to item/detail).
profile_footer.tpl

How are the module index pages constructed in iSkin4? Maybe I can track that pesky code down and get my custom module page to work.

Thanks :)


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3
nate
@nate
8 years ago
917 posts
They are loaded video profile_item_index.tpl, profile_item_detail.tpl and profile_item_list.tpl.

The modules templates in the skin override the module templates in the modules. ie jrAudio_item_index.tpl is modules/jrAudio/templates/item_index.tpl. If you delete the templates they revert back to the default templates.
PatriaCo
PatriaCo
@the-patria-company
8 years ago
349 posts
So I wonder why my custom module default index.tpl is not working? I have not created a template for it in the skin. Where would you start looking to find out what is going on?


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3
nate
@nate
8 years ago
917 posts
whats the module?
PatriaCo
PatriaCo
@the-patria-company
8 years ago
349 posts
Ok, I got it figured out. Unnecessary extra div tags in the Tags tabs.tpl at the very bottom.

And my custom module was using some js from my other skin that I neglected to add in.

Thanks for the help. :)


--
The Patria Company - patriaco.com / quality-trades.com / a-t.life - doing Jamroom since v3
nate
@nate
8 years ago
917 posts
I'll check those div tags. Thanks.

Tags