Does anyone know how exactly the 'assign template' feature works? Is that the only way to assign a template to a menu item? 
I was wondering if it is possible to create a php script that would automatically change templates depending on what section or category you are on. Is this possible?
			
									
									
						Assign Template?
Moderators: tjay, seadap, Rogue4ngel, matthewhayashida
					Forum rules
			
		
		
	Re: Assign Template?
I think this would be possible with a system plugin. Use the setTemplate method of $mainframe inside a onAfterInitialise method of the system plugin you create. For reference, check out plugins/system/remember.php to learn how to create the plugin and includes/application.php to learn how to set a template.
			
									
									
						- infograf768
 - Joomla! Engineer

 - Posts: 366
 - Joined: Fri Aug 12, 2005 3:47 pm
 - Location: •Translation Matters•
 
Re: Assign Template?
You may want to have a look at this extension
http://forum.joomla.org/index.php/topic,216303.0.html
			
									
									http://forum.joomla.org/index.php/topic,216303.0.html
Jean-Marie Simonet / infograf · http://www.info-graf.fr · GMT +1
Qui vult dare parva non debet magna rogare.
						Qui vult dare parva non debet magna rogare.

