Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30
  1. #11
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    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,569
    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.
    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
    West Salem, IL
    Posts
    2,748
    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
    GeekHost - Zen Cart Certified & PCI Compliant Hosting
    The Zen Cart Forum...Better than a monitor covered with post-it notes!

  4. #14
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    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
    22,010
    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
    22,010
    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
    22,010
    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. Deleting products edited by EasyPopulate doesn't seem to work??
    By armyabn1 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 20 Dec 2009, 04:31 AM
  2. BetterCategories - a:active doesn't seem to work
    By nipinuk in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 9 Jan 2007, 01:51 PM
  3. CSS per category doesn't seem to work.
    By voltage in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 16 Jul 2006, 07:29 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