[Zope-CMF] Re: Re-working Breadcrumbs

davelehman@loewen.com davelehman@loewen.com
Wed, 29 Aug 2001 16:03:17 -0500


On 08/29/2001 07:38:53 AM Tres Seaverwrote:

>or, to get what David asked for::
>
>    <div tal:define="crumbs here/breadcrumbs"
>         class="Desktop">
>    <span tal:repeat="crumb crumbs">
>    / <a href="url" tal:attributes="href crumb/url"
>            tal:content="crumb/title"> title </a>
>    </span>
>    </div>

And here's my final tweak to the template so that the last breadcrumb isn't
hyperlinked. (Are all these "spans" the right way to do it?)

<div tal:define="crumbs here/breadcrumbs">
  <span tal:repeat="crumb crumbs">/
    <span tal:condition="repeat/crumb/end">
      <span tal:replace="crumb/title"> title </span>
    </span>
    <span tal:condition="not:repeat/crumb/end">
      <a href="url" tal:attributes="href crumb/url"
         tal:content="crumb/title"> title </a>
    </span>
  </span>
</div>

Thanks to all who helped me figure this out.

Regards,
Dave