|
Posted by Vonleigh Simmons on 08/22/05 12:22
On the current site I'm working on I would like the users to be
able to customize their own section of the site if they wish to by
providing their own template.
So what I would like is for smarty to search the users directory
and if no template is found there, load the template from the normal
template directory. In other words, if the user has provided a
template, that it override the general one.
After some googling I saw some discussions that talked about
modifying the smarty code itself to allow an array of template
directories, seems smarty is smart enough to handle this, however
this solution doesn't sound very elegant as I'm going to be fighting
the developers on every update.
What is a good clean way to do this? All suggestions are
welcome. In my setup I subclass smarty as per the manual if that helps.
Vonleigh Simmons
<http://illusionart.com/>
Navigation:
[Reply to this message]
|