Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble
Posted: 01/19/09 14:07
I have this working in a module smarty function, but I can't pretend that I am understanding it, and parts of it look wrong (I am not using ranking here). So I would appreciate a little advice as to how this should be done in this simple situation.
So this gives me my desired {$UJ_SUN_RISE} and {$UJ_SUN_SET} in my uj_sun.tpl, but I know I am not using ranking and I am not sure what options I have with what I have working here, if you know what I mean
I haven't been able to find the entries in the Jamroom function directory of any practical help with these particular functions, so any clarification as to how this section works would be greatly appreciated!
Thanks for any advice anyone can give!
_________________ Kulshi Mezian!
"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"
Joined: 09 Jul 2003
Posts: 37583
Location: Seattle, WA
Posted: 01/19/09 14:15
You really only need to use htmlGetTemplate() if you want your module to be able to support all of the different template parameters - i.e.
template
tpl_dir
skin
theme
(in other words the template can be located in any theme or skin directory, instead of the active skin directory).
The function merely ensures that the proper options get placed into the $_tpl array, so you don't have to do manual "checking" of these values before passing them to htmlShowTemplate().
Joined: 30 Aug 2005
Posts: 8792
Location: Ultrabubble
Posted: 01/19/09 14:26
Thanks for the lightening fast response Brian - I am at the end of my evening though so I will have to check this out in the morning, I am sure it will be the answers to several of my questions. Thankyou!!!
_________________ Kulshi Mezian!
"Stranger from another planet, welcome to our hole. Just strap on your guitar and we'll play some rock and roll"