Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2006
    Posts
    16
    Plugin Contributions
    0

    Default hiding breadcrumbs if I am on the homepage failing

    if (DEFINE_BREADCRUMB_STATUS == '1' and $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR!="Home")){

    Does not actually work.

    echo this:
    $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR)

    You get:
    Home

    So, check the if statement again:
    DO NOT SHOW BREADCRUMBS IF IT IS "Home".

    So, I checked, if you set it to:
    if (DEFINE_BREADCRUMB_STATUS == '1' and $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR=="Home")){

    It hides the breadcrumbs. So what on earth is going on?

    Any ideas?

  2. #2
    Join Date
    Jan 2004
    Posts
    58,471
    Blog Entries
    3
    Plugin Contributions
    111

    Default Re: hiding breadcrumbs if I am on the homepage failing

    In v1.3.7 you'll find it working this way:
    PHP Code:
    <?php if (DEFINE_BREADCRUMB_STATUS == '1' || (DEFINE_BREADCRUMB_STATUS == '2' && !$this_is_home_page) ) { ?>
        <div id="navBreadCrumb"><?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
    <?php ?>
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Nov 2006
    Posts
    16
    Plugin Contributions
    0

    Default Re: hiding breadcrumbs if I am on the homepage failing

    Thats perfect and funnily enough I was looking for some such variable when I posted my earlier questions that you answered.

    Thanks for you help.

  4. #4
    Join Date
    Mar 2005
    Location
    Helsinki
    Posts
    570
    Plugin Contributions
    0

    Default Re: hiding breadcrumbs if I am on the homepage failing

    ummm so how can I hide it from home page?

  5. #5
    Join Date
    Mar 2005
    Location
    Helsinki
    Posts
    570
    Plugin Contributions
    0

    Default Re: hiding breadcrumbs if I am on the homepage failing

    doh.. nevermind

 

 

Similar Threads

  1. Hide Breadcrumbs...
    By Alex Clarke in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 21 Apr 2011, 05:50 PM
  2. Removing the "Home" link from breadcrumbs
    By cupcake in forum Basic Configuration
    Replies: 12
    Last Post: 6 May 2010, 06:28 PM
  3. Replies: 1
    Last Post: 30 May 2006, 04:00 PM
  4. Customize Manufacturers Homepage Link
    By charlwillia6 in forum Basic Configuration
    Replies: 1
    Last Post: 17 May 2006, 03:00 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
  •