Welcome to Geeklog, Anonymous Saturday, December 21 2024 @ 09:47 pm EST

Geeklog Forums

Can a Static Page be used for Homepage?


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
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Yes.

bye, Dirk
 Quote

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

All times are EST. The time is now 09:47 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content