Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2009
    Location
    Kent, UK
    Posts
    347
    Plugin Contributions
    5

    Default 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

    Code:
      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?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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.
    Last edited by gjh42; 16 Nov 2011 at 03:40 PM.

  3. #3
    Join Date
    Jun 2009
    Location
    Kent, UK
    Posts
    347
    Plugin Contributions
    5

    Default 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...roducts_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?

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default 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?

  5. #5
    Join Date
    Jun 2009
    Location
    Kent, UK
    Posts
    347
    Plugin Contributions
    5

    Default 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

  6. #6
    Join Date
    Jun 2009
    Location
    Kent, UK
    Posts
    347
    Plugin Contributions
    5

    Default 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/showpo...48&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

 

 

Similar Threads

  1. ezpages and iframe
    By suekay in forum General Questions
    Replies: 0
    Last Post: 30 Aug 2009, 02:06 PM
  2. Only Show Sub Categories When Using Cat-Tabs Header
    By acidsesite in forum Basic Configuration
    Replies: 9
    Last Post: 22 Feb 2009, 04:38 AM
  3. Ezpages when using the multi-site mod?
    By bogie in forum Basic Configuration
    Replies: 0
    Last Post: 27 Sep 2008, 08:11 AM
  4. Using an <iframe> tag to insert the dropdown header menu into other pages...
    By rainthebat in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Nov 2007, 06:20 PM
  5. EzPages just wont show up using Latest Version.
    By arpeggio in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 13 Jan 2007, 11:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR