Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30
  1. #11
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    21,093
    Plugin Contributions
    25

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    If you were seeing "not ez-page" even on ez-pages, that indicates that the test
    if (!isset($ez_page_id))
    is not working correctly.
    Maybe the variable $ez_page_id is misspelled in the example?

    A check in the Developers Toolkit shows no matches in the ZC files for $ez_page_id, but a bunch for $ezpage_id.

    Change $ez_page_id to $ezpage_id and this code should work.

  2. #12
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,655
    Plugin Contributions
    25

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    Quote Originally Posted by gjh42 View Post
    Change $ez_page_id to $ezpage_id and this code should work.
    There was indeed a misspelling in the FAQ, which has now been corrected.
    See and test drive Zen Cart's free templates at zencarttemplates.info

    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #13
    Join Date
    Apr 2006
    Location
    Horicon, WI
    Posts
    2,121
    Plugin Contributions
    0

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    Glenn,
    I tried the simplified test code....its a no go. If I use it on the categories sidebox it stops display of all sideboxe, content, footer......If I apply it to the search sidebox then the category sidebox will show but then the rest of the page fails to parse.....


    I get the same behavior from the code on the tutorial page
    Last edited by barco57; 3 Jul 2008 at 01:47 AM. Reason: I get the same behavior using the code from the tutorial
    Mike
    Camelot-Hosting...A PCI compliant Ecommerce Host
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  4. #14
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    21,093
    Plugin Contributions
    25

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    That is because the test code (and the tutorial code it was adapted from) contained a misspelled variable name.

    It needs to be $ezpage_id, not $ez_page_id.

    The problem with this was that it wouldn't hide sideboxes, not that it caused errors. Do you have some setting that will halt execution if a nonexistent variable is called?
    Last edited by gjh42; 3 Jul 2008 at 08:57 AM.

  5. #15

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    Thanks for the update. I am wondering if it were possible to have a sidebox ONLY show up on EZ pages generated pages.
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

  6. #16

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    I know that excluding a sidebox from all other pages except for EZ pages is a little bit more complicated, but I am using the stylesheet to exclude all sideboxes except the one for easy pages is possible using a similar code:

    #allDepartmentsMainContent .buttonRow {display: none;}
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

  7. #17
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    21,093
    Plugin Contributions
    25

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    You can easily set any sidebox to display only on ez-pages, by reversing the test code given above, like this:
    PHP Code:
    if (isset($ez_page_id)) { 
      
    //code to execute on ez-pages


  8. #18
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    21,093
    Plugin Contributions
    25

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    You can also use CSS to hide a sidebox except where desired:
    Code:
    #sideboxid {display: none;}
    
    #pageBody #sideboxid {display: block;}
    This hides the "sideboxid" box except on ez-pages.

  9. #19

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    Quote Originally Posted by gjh42 View Post
    You can also use CSS to hide a sidebox except where desired:
    Code:
    #sideboxid {display: none;}
    
    #pageBody #sideboxid {display: block;}
    This hides the "sideboxid" box except on ez-pages.
    I know this is a rhetorical question but you add the sidebox id to the code above code?
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

  10. #20
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    21,093
    Plugin Contributions
    25

    Default Re: EZ pages sidebox exclusion doesn't seem to work

    All CSS code goes in your stylesheet (/includes/templates/your_template/css/stylesheet.css).

    Replace sideboxid with the name of your sidebox; this can be found in View Source, by looking at the <div id="sideboxid"> above the sidebox output.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. My EZ Pages don't work
    By THETMZ in forum Customization from the Admin
    Replies: 11
    Last Post: 11 Nov 2010, 01:51 AM
  2. Altering Search sidebox to work with EZ pages only
    By ctcentralinfo in forum Templates, Stylesheets, Page Layout
    Replies: 20
    Last Post: 2 Sep 2008, 03:50 AM
  3. EZ-Pages with SSL Doesn't Work
    By terryrocks in forum General Questions
    Replies: 2
    Last Post: 27 Jul 2006, 10:12 AM

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
  •