Hi People,
I plan to build a Joomla (or) Drupal like template chooser option. But i dont know how to build it ? Plz drop your suggestion on this.
Advance thanks for your reply.
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
May 17, 2009 1:07am
Subscribe [2]#1 / May 17, 2009 1:07am
Hi People,
I plan to build a Joomla (or) Drupal like template chooser option. But i dont know how to build it ? Plz drop your suggestion on this.
Advance thanks for your reply.
#2 / May 17, 2009 8:37am
I have no idea how the Joomla template chooser works, but you could probably change the sites entire appearance by changing a single CSS file (See CSS Zen Garden for examples)
You can then just store what stylesheet the user uses in the users table, and load that one on each page
If you want to let them change templates on the fly, just have a dropdown on each page (header of footer) with the list which sets the name and path of that stylesheet in a session variable
#3 / May 17, 2009 9:19am
This (is) a wild idea, but you could treat subfolders (of) application/views as themes. Then in all your view calls, you append (the) “theme” to the view.
$theme = 'zany';
//...
$this->load->view($theme .'/template', $data);Suggeztion drizzopped…