1 m0urs May 08, 2007 11:57
3 m0urs May 08, 2007 13:16
Thanks,
but the problem seems not to be the syntax of the IF clause but the fact that $Blog->ID has the same number (id of my main blog) regardless whether an entry of my main blog of an entry of my (static) blog is displayed.
P.S. The reason ssems to be that I call the static link directly (hardcoded) from _main.php.... So I need to find a way to identify to what blog number the current entry belong to, I suppose....
4 yabba May 08, 2007 13:26
this might work :-
if( strpos( $ReqURI, '/static/' ) === true )
{
// do stuff for a static page
}
else
{
// do stuff for a non-static page
}
¥
5 m0urs May 11, 2007 09:23
Yes! This works for me.
Many thanks,
Michael
6 lepelle Jun 01, 2007 22:35
Looking to solve my own problem of having different designs for different blogs in the same installation, I came upon this thread here.
It seems to me that instead of identifying the blog id, you can use a stub file and set a variable in it like
$blogdesign= <and then a name of design>
Using a switch in _main.php you should then be able to load different column designs (for instance) for different blogs.
I did not find a way to load different _main.php files from the same skin.
Anyone tried this?
¥