CRE Loaded Community

Banner


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 Talented

Joined: Sun Nov 29, 2009 10:57 am
Posts: 348
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... ;)

_________________
CSS Store - http://mdjl40.mdjl-demo.co.uk -Work in Progress
YMM Filter Lists - http://mdjl-demo.co.uk/6-4-1a -Pagnation/Filter Lists


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 Talented

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

but just re-read it and it should be:

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

PUT YOUR FLASH CODE HERE

}

_________________
CSS Store - http://mdjl40.mdjl-demo.co.uk -Work in Progress
YMM Filter Lists - http://mdjl-demo.co.uk/6-4-1a -Pagnation/Filter Lists


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:  
cron
It is currently Sun Feb 05, 2012 10:33 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

Members Online

Follow Us on Twitter

An error occurred

Oops, an error seems to have occurred. We're sorry for any inconvenience this might have caused. If the error persists, feel free to tell us about it.

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