Bridgy
(Peter Bridgfoot)
January 22, 2008, 12:08am
1
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?
Avi_Miller
(Avi Miller)
January 22, 2008, 12:13am
2
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> > </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 > instead of the > character so that it is properly HTML encoded. This is required for HTML/XHTML compliance.
Bridgy
(Peter Bridgfoot)
January 22, 2008, 12:27am
3
That worked a treat. I did have > but it must have changed when I pasted it into the post.
Thanks.
Avi_Miller
(Avi Miller)
January 22, 2008, 12:33am
4
Yes, the forum tries to be very smrt sometimes. :)