You are not logged in Log in Join
You are here: Home » Members » maxm » A list of my How-To's » A simple DTML Breadcrumb method

Log in
Name

Password

 

A simple DTML Breadcrumb method

This is a really simple dtml method that does breadcrumbs navigation to show the users current position in the site.

It views all the PARENTS in reverse and then creates links to them.

Like this:
[ Home > Members > maxm ]

It is a somewhat simpler script than the scripts currently in other How-To's. Thats why I have made it.

[ <dtml-in PARENTS reverse>
<dtml-with PARENTS>
<dtml-if sequence-start><a href="/">Home</a>
<dtml-else>
<dtml-if sequence-end>
<dtml-else>
 > <a href="<dtml-var absolute_url>"><dtml-var title_or_id></a>
</dtml-if>
</dtml-if>
</dtml-with>
</dtml-in>]