2 yabba May 08, 2007 12:11

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....
this might work :-
if( strpos( $ReqURI, '/static/' ) === true )
{
// do stuff for a static page
}
else
{
// do stuff for a non-static page
}
¥
Yes! This works for me.
Many thanks,
Michael
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?
¥