Show if Breadcrumb

In the site design template the first element of the breadcrumbs (home) has been hard coded. This works fine untill the design if used by another site in the system and the hard coded home element aso appears.


What is the best method of only showing the hard coded element if ithe design is being used by one site and not the other without creating a new design for each site?



Cheers

The best way to do this that we have found is to use css to hide the hardcoded element. You would place the hard coded link within a span or div container. You would create a custoisation for the site that you dont want the hardcoded element to appear and load the css to that customisation. The class for the div or span would include "display: none". Hope this helps.

[quote]In the site design template the first element of the breadcrumbs (home) has been hard coded.  This works fine untill the design if used by another site in the system and the hard coded home element aso appears.


What is the best method of only showing the hard coded element if ithe design is being used by one site and not the other without creating a new design for each site?



Cheers

[right][post=“14795”]<{POST_SNAPBACK}>[/post][/right][/quote]



Use a span on the element and add a class on the body to turn it on or off.


    html:
    
    
Hard link MySource crubly stuff
CSS body.design-a #crumbs span{display:none} body.design-b #crumbs span{}


You don't need the second rule - I just put it in there so you can see how to extend the idea.