You are here: Multiple Template Directories « Smarty Templates Posts « IT news, forums, messages
Multiple Template Directories

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация