chemaster
Junior Member   Posts: 33 Registered: 10/8/2002 Status: Offline
|
posted on 3/22/2003 at 04:54 PM |
Is there a way of displaying or not displaying left or right blocks
depending on the url called? |
| |
| |
chemaster
Junior Member   Posts: 33 Registered: 10/8/2002 Status: Offline
|
posted on 3/25/2003 at 03:28 AM |
....... if we can't select to display the left block depending on the URL
called ..... can we .......
Can we have two PostWrap modules? One for displaying left blocks and one
for not showing left blocks?
Example: PostWrap and PostWarpLeft
From within my theme control my left blocks depending on the module called.
The I would only select the proper module to put the URL in.
.... seems like it should work but how much work in there to rewrite one
PostWrap module to change the name to PostWrapLeft?
[Edited on 25/3/2003 by chemaster] |
| |
shawn
Administrator   Posts: 4608 Registered: 10/7/2002 Status: Offline
|
posted on 3/25/2003 at 03:46 PM |
You should be able to have multiple PostWrap mods, but in AT Lite .6 to
have Custom Modules based on PostWrap URL (the page var), try the something
like the following when defining a Custom Module:
if($page == "http://yoururl.com")
{
$custom_module['PostWrap'] = array (
'right' => true,
);
}
if($page == "http://someotherurl.com")
{
$custom_module['PostWrap'] = array (
'left' => false,
'right' => false,
);
}
Or using a switch like:
switch($page)
{
case "http://yoururl.com":
$custom_module['PostWrap'] = array (
'right' => true,
);
break;
case "http://someotherurl.com":
$custom_module['PostWrap'] = array (
'left' => false,
'right' => false,
);
break;
}
HTH
-Shawn |
| |