TomatoCart

68685 Downloads
288 users online
TomatoCart Community
Welcome, Guest
Please Login or Register.    Lost Password?
Bookmark and Share

if in index statement question
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: if in index statement question
#6169
if in index statement question 1 Year, 6 Months ago Karma: 0
Hello,
I have been designing templates for osCommerce and CRE Loaded for many years. We recently are starting development on TomatoCart themes.

My question is I use a code on the mainpage.php page for cre loaded that hides certain content like left and right columns on index.php but on any other page it shows these modules.

The code looks like this:

<head>
<?php
if($cPath == "" && $content == index_default){
$iyes = "yes";
} else {
$iyes = "no";
}
?>
</head>

<?php if($iyes == "yes"){ ?>
content I want to display on index.php
?php } ?>

<?php if($iyes == "no"){ ?>
content i dont want displayed om index.php
?php } ?>

What would this code be for the tomatocart structure as I cannot get it to work.

Thanks.
jmccommas
Moderator
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Boston USA Birthday: 04/15
TomatoCart Hosting Provided by Level Ten Hosting Find more TomatoCart themes at: TomatoCart Templates
The administrator has disabled public write access.
 
Go to top Page: 1
Moderators: jmccommas, hdata, Bucharest

Latest Blog Post

How to install the Authorizenet AIM payment module

Authorize.Net enables merchants to authorize, settle and manage credit card and electronic check transactions via Web sites, retail stores, mail ...

Blog | jack.yin(weijian) | Wednesday, 2 May 2012

More in: About Us

-
+
3

contact_us

info@tomatocart.com
partner@tomatocart.com
support@tomatocart.com
Gtalk: jack.yin@tomatocart.com
Facebook Google+ Linkedin Twitter

Newsletter Subscription