Overriding the default template

Everything to do with Joomla! 1.5 templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Locked
User avatar
spiderglobe
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 151
Joined: Mon Apr 03, 2006 1:45 pm
Location: Netherlands

Overriding the default template

Post by spiderglobe » Thu Sep 13, 2007 7:22 am

Ls.

Is it possible to override the default template with another template? For example if a user logs in I want to change the template within a custom extension.  How is currently the template assigned?

For example is there a template switcher for 1.5?

I tried in the code:

global $mainframe;

$mainframe->setTemplate('mytemplate');

But this gives not the desired result, still showing the default template.

R.
Last edited by spiderglobe on Thu Sep 13, 2007 7:37 am, edited 1 time in total.

Locked

Return to “Templates for Joomla! 1.5”