Breadcrumbs

I have my breadcrumbs set up as the following:

    
    			
    			
    			
    			
    			
    			
    			
    				
    					
    				
    			 
    >
    		 


Is there a way to make it so that the last item that appears (current page) is not a link?

Change your design area to this:


[codebox]

<MySource_AREA id_name="page_lineage" design_area="asset_lineage">

<MySource_SET name="levels_to_print" value="0" />

<MySource_SET name="prefix_with_home_link" value="false" />

<MySource_SET name="show_hidden_links" value="true" />

<MySource_SET name="suffix_with_current_link" value="false" />

<MySource_SET name="prefix_with_divider" value="true" />

<MySource_SET name="suffix_with_divider" value="true" />

<MySource_DIVIDER> &gt; </MySource_DIVIDER>

<MySource_ASSET>

<a href="<MySource_PRINT var='asset_link' />">

<MySource_PRINT var='asset_name' />

</a>

</MySource_ASSET>

<MySource_PRINT id_name="global" var="asset_name" />

</MySource_AREA>

[/codebox]



What this does is tell the design area not to paint the current asset, and then just gets the design itself to do that after the breadcrumb has painted. Note that I also changed the divider to &gt; instead of the > character so that it is properly HTML encoded. This is required for HTML/XHTML compliance.


That worked a treat. I did have &gt; but it must have changed when I pasted it into the post.

Thanks.

Yes, the forum tries to be very smrt sometimes. :)