Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default hide breadcrumbs for specific category

    I'm using some landing pages as subcategories of a "Landing Pages" category. Let's say Landing Pages is category 50. How can I modify the code below to hide the breadcrumbs display when category 50 is being browsed, affecting all subcategories as well?

    Basically I'm hoping I can simply add something next to the $this_is_home_page condition.

    Two problems that may exist for accomplishing this:

    1. 1'm using Ceon SEO URIs, so if the code references the current page URL, it won't find the conditional category number. It also won't find the parent category name in the URL, as I'm formatting such landing pages to be "www.mysite.com/Widgets1" rather than "www.mysite.com/Landing Pages/Widgets1".

    2. The 'path' URL parameter shows subcategories as 50_4, and I'm really concerned about parent category 50.

    But if there is a way for the code to determine the category


    Here's the existing code from tpl_main_page.php.

    Code:
    <!-- bof  breadcrumb -->
    <?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 } ?>
    <!-- eof breadcrumb -->

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,136
    Plugin Contributions
    11

    Default Re: hide breadcrumbs for specific category

    How about adding a css for that cat with a display: none for the breadcrumb.

    Readme in the css folder.

  3. #3
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default Re: hide breadcrumbs for specific category

    As you suspected, I didn't know about the css method. So I tried that with c_50.css, but it doesn't apply to subcategories, such as 50_3. Am I going to need to create another file for each subcategory?

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,136
    Plugin Contributions
    11

    Default Re: hide breadcrumbs for specific category

    This is old, but you might see if it will work for you.

    http://www.zen-cart.com/forum/showpo...38&postcount=7

  5. #5
    Join Date
    Jul 2006
    Posts
    308
    Plugin Contributions
    0

    Default Re: hide breadcrumbs for specific category

    That's perfect and seems to work well, thanks!

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,136
    Plugin Contributions
    11

    Default Re: hide breadcrumbs for specific category

    Glad you got it going. The forum search is not as sentient as Google. I have a firefox add-on that allows me to add any site's search to the Google search bar. First item was the answer.

    If you use a different browser or can't get the add on working, you can always Google
    site:www.zen-cart.com whatever you need to find
    Another advantage to the use of Google is the ability to use literals (surrounding your search with quotes).

  7. #7
    Join Date
    May 2012
    Posts
    2
    Plugin Contributions
    0

    Default Re: hide breadcrumbs for specific category

    Quote Originally Posted by fakeDecoy View Post
    That's perfect and seems to work well, thanks!
    Thanks man for your insight.

    I would like to link different banners to particular categories, can you advise me on how to achieve it.
    Thanks

  8. #8
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: hide breadcrumbs for specific category

    Quote Originally Posted by wycliffn View Post
    Thanks man for your insight.

    I would like to link different banners to particular categories, can you advise me on how to achieve it.
    Thanks
    Are you talking about different banners governed by the banner boxes in admin >>> tools >>> banner manager?

    ... or different header logos?
    20 years a Zencart User

 

 

Similar Threads

  1. v139h breadcrumbs for ezpage suddenly has a category name in it
    By delia in forum General Questions
    Replies: 5
    Last Post: 29 Feb 2012, 09:30 PM
  2. Hide Categories and show only for specific groups
    By gazag in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 5 Dec 2011, 08:28 PM
  3. Hide Breadcrumbs...
    By Alex Clarke in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 21 Apr 2011, 05:50 PM
  4. specific banner to show for specific category
    By vijay in forum Basic Configuration
    Replies: 1
    Last Post: 26 Aug 2009, 01:19 PM
  5. hide breadcrumbs
    By jmelwak in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 1 Aug 2008, 08:27 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