FatHed
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, |
| |
| |
shawn
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
|
| |
FatHed
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, |
| |