Support Spidean

Do you like our FREE downloads? How about the FREE support for the FREE downloads? Please help us out and donate any amount! It's fast and easy through PayPal.

Spidean Forums

Board Index > Support > Display a different menu


 < Last Thread   Next Thread >New Topic  Post Reply
Author: Subject: Display a different menu

Newbie





Posts: 5
Registered: 11/12/2002
Status: Offline

  posted on 1/20/2003 at 03:32 AM
How can I display a different menu for each postwrap file that I open? I'm using autotheme as well, and I have some ideas on how to do it. Can I just use a PHP if statement and grab the $file variable from the URL?

Thanks,

 
Reply With Quote Visit User's Homepage

Administrator




Posts: 4608
Registered: 10/7/2002
Status: Offline

  posted on 1/20/2003 at 04:54 AM
Yes, great idea! I'm adding this fuctionality to the next AutoTheme and of course PostWrap will be included.

If you're good with PHP you can add something in theme.cfg. Maybe something like:

if($page == "http://something.com/page.html") {
$custom_module['PostWrap'] = array (
'main' => "sometemplate.html"
);
} else {
$custom_module['PostWrap'] = array (
'main' => "anothertemplate.html"
);
}

Or if you have alot of PostWrap pages, maybe use a switch.

HTH
-Shawn

 
Reply With Quote

Newbie




Posts: 5
Registered: 11/12/2002
Status: Offline

  posted on 1/20/2003 at 05:17 AM
Sweet!

I'll give it a try and see if it sovles my needs. I was going to copy theme.php to somename.php, and change it aroung to to load a different HTML file, and have that load a different menu and different content, but man that would have sucked, .

Your solution is much better, thanks,

 
Reply With Quote
New Topic    Post Reply


Main Menu

Get AutoTheme

Featured Item

Poll

How do you like the new look?

[ Results | Polls ]

Votes: 180

Powered by the AutoTheme HTML Theme System
Page created in 0.106142 Seconds