ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Joomla like template chooser option

May 17, 2009 1:07am

Subscribe [2]
  • #1 / May 17, 2009 1:07am

    tummy.developer

    1 posts

    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

    Dam1an

    2385 posts

    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

    Colin Williams

    2601 posts

    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…

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases