Can you change the template on the fly, based on menu items selected?

Joomla version 1.0 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
pasha_one
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Fri Nov 17, 2006 7:23 pm

Can you change the template on the fly, based on menu items selected?

Post by pasha_one » Mon Nov 20, 2006 10:46 pm

Im wondering if i can change parts of the template based on the menu item selected. The idea is to replace an image.
look here --> linky dont work, so here is a pic.
Image

I would like to be able to change primary contact image to something like menu or something else, since i want the primary contact info only on the main page.

Thanks.

pasha
Last edited by pasha_one on Tue Nov 21, 2006 8:16 pm, edited 1 time in total.

 
ledzep

Re: Can you change the template on the fly, based on menu items selected?

Post by ledzep » Mon Nov 20, 2006 10:48 pm

The URL does not appear to go anywhere!!

pasha_one
Joomla! Apprentice
Joomla! Apprentice
Posts: 34
Joined: Fri Nov 17, 2006 7:23 pm

Re: Can you change the template on the fly, based on menu items selected?

Post by pasha_one » Tue Nov 21, 2006 8:16 pm

sorry about that, i put up a screen shot.
thanks.

User avatar
joomir
Joomla! Apprentice
Joomla! Apprentice
Posts: 43
Joined: Tue Jun 19, 2007 1:14 pm
Location: tehran
Contact:

Re: Can you change the template on the fly, based on menu it

Post by joomir » Mon Sep 12, 2011 7:06 am

and you can use this inside joomla:

$app =& JFactory::getApplication();
$app->setTemplate("template2");

 

Locked

Return to “Upgrading - 1.0.x”