Switch Joomla template based on user action

Discussion in 'Joomla' started by Robico, Sep 25, 2011.

  1. #1
    I'm currently building a Joomla 1.5 template for someone and they need the following functionality. When a user clicks on a certain button that the layout of the website will change slightly (e.g. expand one area and hide some areas) and then when the click another button then it will switch back to the original layout. What is the best way to achieve this?
     
    Robico, Sep 25, 2011 IP
  2. Nick252

    Nick252 Well-Known Member

    Messages:
    983
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    110
    #2
    with javascript, jquery...
     
    Nick252, Sep 26, 2011 IP
  3. rebbu

    rebbu Active Member

    Messages:
    36
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    93
    #3
    You can assign templates to menu item basis.
    Navigate to Extension > Template Manager and click on one of the templates in the list.

    A page will appear that has a Menu Assignment panel congaing a list of menus and their items.

    To have one template for the front page and another for all other pages, you would have one template that is assigned to the "Home" item. And another template that is assigned to all menu items but "Home".
     
    rebbu, Sep 29, 2011 IP