, Guest!
Already a Member? Login or Register.





Menu



Clients



Showcase



Rate FlexCMS

ScriptSearch.com Rating:

Hotscripts Rating
Excellent!
Very Good
Good
Fair
Poor



FlexCMS eNews

To subscribe to our enewsletter, please enter your email address in the box below and click the "Subscribe" button.


Note:  You may easily remove yourself from the newsletter list at any time by following the instructions included with every mailing.

LATEST DEVELOPMENT NEWS:  FlexCMS 2.5 has been released!!! Click here to read the official announcement!

Home > FlexCMS Support Forum > User Help > FAQ's: Templates > Assigning Template to Module

FlexCMS Support Forum


Assigning Template to Module
Started October 28, 2006 @ 11:32am by cinder
Post Message 
cinder


Posts: 7
 
Assigning Template to ModuleOctober 28, 2006 @ 11:32am
Is there a process of assigning a template, in addition to the default, to a module? What I am looking to do is make the store look different than the rest of the site.

Thanks! Cris
 
DCSun
Administrator

Posts: 392
 
October 28, 2006 @ 12:34pm
Hi Cris,

Unfortunately we don't currently have an option in FlexCMS to assign more than one template to a site.

One thing you could do if you're handy with PHP, is add some code in the template.php file to switch it when on the store pages. It would be something like this:
Code

if ($Arguments1 == 'store') {
template 1
}
else {
template 2
}
This would have to be added to the sections of the template file you wanted to change. Keep in mind that the template file uses PHP subroutines, so they would have to be left in place and their contents modified. Also don't forget that the $Arguments1 variable has to be added to the Globals list at the top of the function.


David
 

Last Edit: October 28, 2006 @ 12:36pm by DCSun
cinder


Posts: 7
 
October 28, 2006 @ 1:20pm
Ok, I'll fool around with a test site and see what I can work out. It looks fairly easy (famous last words).

Thanks for your help!

 

Post Message 







All Contents, Code, Scripts and Technologies Copyright 2003-2007 FlexCMS.
All Rights Reserved. Software License Agreement

Processing Time: 0.09233 seconds.
 

Powered By FlexCMS
Powered By FlexCMS


Valid CSS!