DIrk. I think there is a problem with this feature (staticpage as homepage) or maybe I am simply misunderstanding the docs.
I have a staticpage, the title of which is 'frontpage'. I entered no label.
Its format is BLANK, which I interpret as having no header, footer or blocks.
I enabled it as a centerblock, taking up the ENTIRE PAGE.
I enable php. In the contents I put the following:
Text Formatted Code
global $_USER, $_CONF;
if ($_USER['uid'] > 1) {
print '<a href="' . $_CONF['site_url'] . '/users.php?mode=logout">Logout</a>';
} else {
echo $_USER['uid'];
print '<a href="' . $_CONF['site_url'] . '/users.php?mode=login">Login</a>';
}
The code is working, but the page is NOT blank. Is this a bug? I am testing the nightly tarball.