Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 08:26 am EDT

Geeklog Forums

How to test in header whether site is on Home (ie front) Page?


Dmite

Anonymous
How can I test in the header.thtml (via PHP) whether the site is on the front page? I want to display an image, but only on the front page. I know I can do it in a static page centerblock, but that forces white space around the image. I want it flush against everything. If I place it in the header, it displays nicely, but on every page. I only want it on the front page.

Any ideas?

-D
 Quote

Dmite

Anonymous
Wow.

I really think Geeklog is amazing. The answer to my question is

COM_onFrontpage()


We need to get Geeklog a better templating engine because, unfortunately, most users aren't terribly interested with what is under the hood. They want to know if stuff blinks and flashes and goes ooogah ooogah. But when you look inside Geeklog, it is just plain poetry.

Great bleepin' job!
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
You are right: Geeklog is not only The secure CMS
but we coudn't take Code is poetry as slogan Big Grin

Ben



I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

Status: offline

koalasoft

Forum User
Full Member
Registered: 03/09/05
Posts: 242
Location:Mexico
where is this function COM_onFrontpage(), what file ?

Greetings!! Mr. Green
**Cuando el Alumno esta listo, el Maestro Aparece **
::Geeklog support in Spanish::
 Quote

Status: offline

::Ben

Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Location:la rochelle, France
You can find all COM_functions in public_html/lib-common.php

Ben
I'm available to customise your themes or plugins for your Geeklog CMS
 Quote

All times are EDT. The time is now 08:26 am.

  • 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