Ignore:
Timestamp:
3 Jan 2010, 17:03:14 (15 years ago)
Author:
uli
Message:

Make use of layout support for automatically rendered primary
navigation tabs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • waeup/branches/ulif-layout/src/waeup/browser/templates/sitelayout.pt

    r4641 r4650  
    3131          <div id="navigation" class="yui-navset" style="text-align:right;">
    3232            <ul id="primary-navigation">
    33               <li class="active"><a href="#">Home</a></li>
    34               <li>
    35                 <a tal:attributes="href
    36                                    python:view.application_url() + '/faculties'">
    37                   Faculties</a>
    38               </li>
    39               <li>
    40                 <a tal:attributes="href
    41                                    python:view.application_url() + '/@@search'">
    42                   Search</a>
     33              <li tal:repeat="entry python:layout.getPrimaryNav(view)"
     34                  tal:attributes="class entry/active">
     35                <a href="#"
     36                   tal:attributes="href entry/url"
     37                   tal:content="entry/title">Menu Item</a>
    4338              </li>
    4439            </ul>
Note: See TracChangeset for help on using the changeset viewer.