Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Remove header,sidebars etc when using iframe to show EZpages?

Remove header,sidebars etc when using iframe to show EZpages?

Views: 2,236

Results 1 to 6 of 6
16 Nov 2011, 2:23 PM
#1
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Remove header,sidebars etc when using iframe to show EZpages?

im using the highslide plugin by numinix, and i have a few links which i call using this but in an iframe instead, hence the reason why i dont need the header footer etc, an example is a list of anniversaries by year and their meanings etc, its additional info for the product_info page so i dont want the user to be distracted away, however i still want this page accessible from other areas of my site (with the header footer etc etc)

the numinix module isn't the problem.. its knowing how to tell zen cart that i dont need the additional bits when called from the product_info page.

i'm aware of the override that can used on tpl_main_page.php

  if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes_on_here,separated_by_commas,and_no_spaces')) ) {
    $flag_disable_right = true;

is there a way to adapt / use this on the EZpages themselves?

16 Nov 2011, 2:36 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Remove header,sidebars etc when using iframe to show EZpages?

Configuration > EZ-Page Settings >
EZ-Pages Pages to disable headers
EZ-Pages Pages to disable footers
EZ-Pages Pages to disable left-column
EZ-Pages Pages to disable right-column

If you want the same pages accessible whole from elsewhere, that would require custom coding. Your best bet might be to clone the information and use one set of ez-pages for iframes and the other set for regular use. Duplicate content would not be an issue, as search engines can't see into iframes.

16 Nov 2011, 2:40 PM
#3
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: Remove header,sidebars etc when using iframe to show EZpages?

sorry i may not have made myself clear, i still want these ezpages to render normally with headers etc when accessed outside of the product_info page, however when using an iframe to display the ezpage inside the product_info display i need to disable them as they are being displayed in a modal box.

example page: http://www.livvylougifts.co.uk/index.php?main_page=product_info&cPath=55_165&products_id=410

which is why i wonder if the array in the tpl_main_page may be a solution?

or perhaps including the language file itself?

any advice much appreciated.

EDIT: just seen your edit. is there already a mod for cloning the ezpages? or could you point me in the right direction perhaps please?

16 Nov 2011, 2:43 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Remove header,sidebars etc when using iframe to show EZpages?

Just copy & paste the content of one into another new ez-page. It's a manual process, but you are not going to be doing it frequently, are you?

16 Nov 2011, 2:47 PM
#5
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: Remove header,sidebars etc when using iframe to show EZpages?

haha i thought you meant the whole ezpage module lol

erm, not necessarily but if there was an easy way to do it i could probably make use of it right across my site, so its not an absolute must but it would be very very useful.

no worries, i'll have a fiddle around see what i can do, thanks for the fast replies

25 Nov 2011, 12:32 PM
#6
bonnit avatar

bonnit

Zen Follower

Join Date:
Jun 2009
Location:
Kent, UK
Posts:
350
Plugin Contributions:
0

Re: Remove header,sidebars etc when using iframe to show EZpages?

for the sake of anyone else looking to do this, i went an easier route by allowing php in my ezpages

http://www.zen-cart.com/forum/showpost.php?p=219348&postcount=7

used a php include to embed a predesigned html file which displayed with sidebars and header footer etc etc in ezpage, but allowed me to call the raw html file without head etc from within my product info pages.

much much easier :D