CRE Loaded Community



Board index » Web Design and Development » Development Discussions

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: How to show part of Header on Main Page only?
PostPosted: Thu Jan 21, 2010 2:08 am 
Offline
CRE Newbie
User avatar

Joined: Thu Aug 14, 2008 10:47 am
Posts: 12
Hi,

I'm working on a template for a new store, the header section on the main page is quite large, it includes a jQuery image scroller, so I would like to keep this part of the header to the index page only, and just show the rest of the header on the sub pages (product_info, etc).

I've tried putting that part into a mainpage_module, but I've not been able to get it to display in the location I want it to, between 2 existing header elements. If I load it where the mainpage_modules are loaded by default, it breaks the layout.

Here's an example of what I'm trying to do:

Current Index page:
Image

How I want the other pages to look:
Image

Any advice would be appreciated.

Thanks,

Jason


Top
 Profile  
 
 Post subject: Re: How to show part of Header on Main Page only?
PostPosted: Thu Jan 21, 2010 4:20 am 
Offline
CRE Addict

Joined: Sun Nov 29, 2009 10:57 am
Posts: 271
Hi,

Just to point you in the right direction..


if (substr(basename($PHP_SELF), 0, 5) != 'index') {

PUT YOUR FLASH CODE HERE

}

There may be an better way to do this... but... ;)

_________________
Italian Food - http://mdjl-demo.co.uk/mediterraneandirect
Demo Store - http://mdjl-demo.co.uk/demo


Top
 Profile  
 
 Post subject: Re: How to show part of Header on Main Page only?
PostPosted: Thu Jan 21, 2010 4:55 am 
Offline
CRE Newbie
User avatar

Joined: Thu Aug 14, 2008 10:47 am
Posts: 12
Very helpful, thank you :)


Top
 Profile  
 
 Post subject: Re: How to show part of Header on Main Page only?
PostPosted: Thu Jan 21, 2010 5:40 am 
Offline
CRE Addict

Joined: Sun Nov 29, 2009 10:57 am
Posts: 271
Good..

but just re-read it and it should be:

Code:
if (substr(basename($PHP_SELF), 0, 5) == 'index') {

PUT YOUR FLASH CODE HERE

}

_________________
Italian Food - http://mdjl-demo.co.uk/mediterraneandirect
Demo Store - http://mdjl-demo.co.uk/demo


Top
 Profile  
 
 Post subject: Re: How to show part of Header on Main Page only?
PostPosted: Thu Jan 21, 2010 6:12 am 
Offline
CRE Newbie
User avatar

Joined: Thu Aug 14, 2008 10:47 am
Posts: 12
I used:

Code:
<?
if (substr(basename($PHP_SELF), 0, 5) != 'index') {

} else {
    include($modules_folder . INCLUDE_MODULE_ONE);
}
?>


Thanks for pointing me in the right direction.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

Board index » Web Design and Development » Development Discussions

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Fri Jul 30, 2010 11:52 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Top Listing

1. Credit Card with CCV
    Category: Payment Modules
    
2. CC7333_ATS
    Category: Templates
    
3. Points & Rewards PLUS!...
    Category: Add-Ons
    
4. One Page Checkout...
    Category: Fixes
    
5. Configuration Server...
    Category: Fixes
    
Show more...

Follow Us on Twitter

@likeOMGitsFEDAY we do offer a wiki and other resources at www.creloaded.org
@smellgoodslady 6.2 is old code, we are at 6.4 now. come and get the latest.
@smellgoodslady what version/release are you running?
CRE Secure in the news: Payment News Article about Hosted Payment Pages reducing PCI friction - http://is.gd/ba0CH
@smellgoodslady yes it should work for 6.2 as well. let me know of you have any issues.

CRE Loaded Community Chat hosted by CRE Loaded.

Join now


Chat about what's on your mind. More about public chats.


© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy