Status: offline

ola_one

Forum User
Full Member
Registered: 06/28/03
Posts: 186
mellow
Hello all,

Is it possible to use a static page as one's default home page?

Thanks

Ola

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Yes.

bye, Dirk

Whoosh

Anonymous
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.