Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / if (current_page == homepage)... how can I do get this statement?

if (current_page == homepage)... how can I do get this statement?

Locked

Views: 1,475

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
11 Sep 2007, 2:10 AM
#1
gems14k avatar

gems14k

New Zenner

Join Date:
Jul 2005
Posts:
95
Plugin Contributions:
0

if (current_page == homepage)... how can I do get this statement?

<?php if (current_page == homepage)  echo META_TAG_HOMEPAGE_DESCRIPTION else echo META_TAG_DESCRIPTION; ?>

if (current_page == homepage)... how can I do get this statement in zencart?

Thank you,

11 Sep 2007, 2:13 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: if (current_page == homepage)... how can I do get this statement?

gems14k:

if (current_page == homepage)... how can I do get this statement in zencart?

$this_is_home_page

Or maybe you're really looking for this?
http://www.zen-cart.com/forum/showthread.php?t=62726

11 Sep 2007, 2:28 AM
#3
gems14k avatar

gems14k

New Zenner

Join Date:
Jul 2005
Posts:
95
Plugin Contributions:
0

Re: if (current_page == homepage)... how can I do get this statement?

Thank you. I got it now.

Below is the code I use:

<?php 
if ($this_is_home_page) {
  echo META_TAG_HOMEPAGE_DESCRIPTION;
} else {
  echo META_TAG_DESCRIPTION;
}
?>