Welcome to Geeklog Sunday, January 16 2022 @ 05:08 pm EST

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: 14/01/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: 09/03/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: 14/01/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 EST. The time is now 05:08 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