|
A recent discussion in the Mamboserver's forum have revealed that you can easily make a small change to the index.php file and you are able to make the template change by passing a variable in the url like this:
If you want to know, click on "Read more..." to find out how.
To make the modification, open up index.php file in the root directory. Save a backup copy first. Once a backup copy is made, go to around Line 120 and look for the following code:
...
$gid = intval( $my->gid );
$cur_template = $mainframe->getTemplate(); $col_main = 1; // temp fix - this feature is currently disabled
...
Now, you are going to replace the $cur_template = $mainframe->getTemplate(); line with the following code:
...
if (@$_GET['pagetemplate'] == ""){ $cur_template = $mainframe->getTemplate(); } else { $cur_template = $_GET['pagetemplate']; };
...
Here's what it should look like after modification:
...
$gid = intval( $my->gid );
if (@$_GET['pagetemplate'] == ""){ $cur_template = $mainframe->getTemplate(); } else { $cur_template = $_GET['pagetemplate']; };
$col_main = 1; // temp fix - this feature is currently disabled
...
Once that's done, save it, and run a test by passing the page template name through the URL like this:
http://demon.visualdensity.com/index.php?pagetemplate=morning_dew
If you have any problems, please post them at the forum here. Have fun!
Thank you
|
Whoa, great tips Written by Guest on 2004-07-08 10:09:03 | just what i was looking for... Written by Guest on 2004-08-03 15:00:10 any way of displaying a specific user defined area depending on the template selected?? | disable syndicate Written by Guest on 2005-08-02 07:15:02 How do I disable the component - 'Syndicate'.? After unistalling from the Admin it still remains on the frontpage.
|
Only registered users can write comments. Please login or register. Powered by AkoComment 2.0! |