Paul wrote:
How would I go about generating site navigation breadcrumbs with TT?

As in:

Home > SubSection1 > SubSection2 > CurrentPage

Subsections are descriptive names for the current directory structure
that a page resides in.  The above "CurrentPage" might be
/sub1/sub2/index.ttml relative to the docroot.

Any ideas or previous experience would be greatly appreciated!
Your question is not really about how to use TT to render the breadcrumb, but how to access the information that TT needs to render it, and how this information is interlinked.

http://perl.apache.org is autogenerated with help of TT, and it uses a cache files generated during the docs parsing to generate the breadcrumb and the rest of the navigation system. It's created by DocSet which is available from CPAN. The template in question is
http://search.cpan.org/src/STAS/DocSet-0.15/examples/site/tmpl/custom/html/navbar_global

The main benefit of using DocSet is that it's using a distributed configuration, rather than a centralized configuration. Making it a breeze to maintain huge sites using it. perl.apache.org currently has about 600 docs in it.

I've also ported my own site (http://stason.org/) to use the same build system and even design ;)


__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.ourshack.com/mailman/listinfo/templates

Reply via email to