Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Clarification of $this_is_home_page

Clarification of $this_is_home_page

Locked

Views: 1,977

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
2 Nov 2007, 3:43 PM
#1
borzoid avatar

borzoid

Totally Zenned

Join Date:
Feb 2004
Location:
Michigan
Posts:
589
Plugin Contributions:
1

Clarification of $this_is_home_page

Hi all,

I've been out of the loop for quite a while and am learning ZC all over again. First of all I am working with a clean install of 1.3.7 patched and am using the alternate header.

I want to put an image between the navigation (bottom of header) and the breadcrumb on the home page only. I've read several threads that say to use the $this_is_home_page variable but I am unsure about what file to put this in and what code is supposed to be wrapped up by it. Any guidance at all would be greatly appreciated.

Connie

2 Nov 2007, 3:45 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Clarification of $this_is_home_page

Use it like this:```

<?php if ($this_is_home_page) { ?>

INSERT SPECIAL HOME-PAGE-ONLY HTML CONTENT HERE

<?php } ?>

If it's to be part of the header, then I'd put it in tpl_header.php.
If it's to be part of something somewhere else on the page, then perhaps tpl_main_page.php
2 Nov 2007, 4:09 PM
#3
borzoid avatar

borzoid

Totally Zenned

Join Date:
Feb 2004
Location:
Michigan
Posts:
589
Plugin Contributions:
1

Re: Clarification of $this_is_home_page

Thank you

2 Nov 2007, 4:11 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: Clarification of $this_is_home_page

OT - waves at Connie!

2 Nov 2007, 4:22 PM
#5
borzoid avatar

borzoid

Totally Zenned

Join Date:
Feb 2004
Location:
Michigan
Posts:
589
Plugin Contributions:
1

Re: Clarification of $this_is_home_page

It worked perfectlly - thanks

Hi ya Kim