Jamroom Logo Jamroom 5 Core
is now Open Source!
User Support Forum Archive (Read Only)
Jamroom Developers:
admin templates?
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 08/22/13 17:03 
Are there skin-specific admin templates still? I couldn't figure out whether or not there was a way to override it through the skin, and I didn't see any of the other skins doing that :/

So far liking jr5! but definitely not as easy to navigate through just the source alone (or could just be out of practice!) Looking forward to the docs!

Kyle


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 08/22/13 17:13 
/modules/jrCore/templates contains the admin templates for form fields etc.

admin.tpl is the main container for admin, uses the header footer etc from the skin dir.

form_field_elements.tpl is a crucial one as well - it is used for the majority of the fields used in the forms.

You need to look at the form php functions to get at the actual pointy ends.

Each and every template in /modules/jrCore/templates can be overridden by copying it to the active skin directory (at least that was the way it worked a few betas back).


_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 08/22/13 17:15 
Ahhh nice! I'll try copying over that folder then to my skin and see if that overrides it.

thanks!

Kyle


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 08/22/13 17:16 
Not the folder, jsut the individual templates.

I find it easier to navigate from the source than jr4, but there are places where you need to loop your brain around your feet before you will find the easier route.


_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 08/22/13 17:16 
Ahh wait - copy the entire templates directory? or the contents of /templates?

Thanks,

Kyle


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
SteveX
Ultrabubble


Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble

Posted: 08/22/13 17:17 
see above


_________________
Kulshi Mezian!

"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"

Ultrabubble create things.
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 08/22/13 17:18 
Ahh cross posting - roger that, thanks!


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 08/26/13 18:54 
you can over-ride anything with
/skins/(skin_name)/(module_name)_(template_name).tpl


so if you don't like
/modules/jrAudio/item_list.tpl

You can do away with it by placing a:
/skins/jrElastic/jrAudio_item_list.tpl

file.

Same with jrCore:
/skins/jrElastic/jrCore_some_template_name.tpl

a few betas back there were locations where you could just use the exact template name, because it was being checked for by the module, but then a "hold on..." moment came and the need for the module to check if the skin was over-riding it went away. (so lazy module developers didn't have to think about whether the skins were overriding them or not. Wink )


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 08/28/13 10:15 
Ahh, thanks - so if it was cp templates, could we do /skins/skin_name/jrCore_admin.tpl, for example?

Kyle


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Michael
Jamroom Team


Joined: 22 Apr 2008
Posts: 3423
Location: Tokyo

Posted: 08/28/13 16:57 
right. Smile

The location for any .tpl file provided by a module will be:
/modules/(module name)/templates/(template name).tpl

So any of those module provided templates are can be over-ridden by the skin with:
/skins/(skin name)/(module name)_(template name).tpl

Since jrCore module provides the file:
/modules/jrCore/templates/admin.tpl

/skins/skin_name/jrCore_admin.tpl would work as an over-ride.


_________________
Michael Ussher
Jamroom Network Team Member: http://www.jamroom.net
Priority Support: http://www.jamroom.net/Support_Center
Back to top
smith.kyle
CodeSmith


Joined: 27 Apr 2006
Posts: 22009
Location: Southern California

Posted: 08/29/13 10:47 
Perrrrrfect! Thanks man!

Kyle


_________________
kyle[at]jamroom.net

Yes...that's a soda machine...

I get bored when no one's posting...
Back to top
Display posts from previous:   
User Support Forum Archive (Read Only)
Jamroom Developers

 
Solutions
• Social Media Platform
• Social Networking Software
• Musician Website Manager
• Community Builder
Products
• Jamroom Core
• Jamroom Addons
• Jamroom Modules
• Jamroom Marketplace
Support
• Support Forum
• Documentation
• Support Center
• Contact Support
Community
• Community Forum
• Member Sites
• Developers
Company
• About Us
• Contact Us
• Privacy Policy
©2003 - 2010 Talldude Networks, LLC.