Announcement

Collapse
No announcement yet.

Remove breadcrumb trail for certain pages and not for others?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Remove breadcrumb trail for certain pages and not for others?

    On certain pages of my site I don't want the breadcrumb trail to appear but on other pages I would like it to remain, is there a way of doing this? thanks.

    #2
    A number of possible solutions.

    You can place a BlockIf around the breadcrumb code in design with a test for either the page name or page title that you want to stop it showing on.

    You could also create a variable at section level, set this where you don't want the breadcrumbs and use that in the BlockIf test instead.

    Comment


      #3
      Forgive me as I am not particularly great when it comes to editing the code!!

      Which is the easiest way of doing this?

      When I looked at the layout code there was already a blockif statement around the breadcrumb code....

      would you be able to explain this for a complete novice ?!

      Comment


        #4
        I don't know what theme you are using (if any) but what you need to do is place a new BlockIf set inside the existing one.

        So you will end up with something like this which tests against the SectionName for Cameras in the default store and will remove the breadcrumbs for that section only.

        Code:
        <actinic:block if="%28%3cactinic%3avariable%20name%3d%22SectionLevel%22%20%2f%3e%20%3e%201%29%20OR%20%28%3cactinic%3avariable%20name%3d%22IsHotLinkListOmitted%22%20%2f%3e%20%3d%3d%20FALSE%29">
        
        <actinic:block if="%3cactinic%3avariable%20name%3d%22SectionName%22%20%2f%3e%20%21%3d%20%22Cameras%22" >
        
                 <actinic:variable name="ParentSectionListTop" />
        
        </actinic:block>
        
        </actinic:block>

        Comment

        Working...
        X