Last change
on this file since 3659 was
1,
checked in by myroslav, 19 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
1.7 KB
|
Line | |
---|
1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
2 | lang="en" |
---|
3 | metal:use-macro="here/main_template/macros/master" |
---|
4 | i18n:domain="plone"> |
---|
5 | |
---|
6 | <body> |
---|
7 | |
---|
8 | <div metal:fill-slot="main"> |
---|
9 | <tal:main-macro metal:define-macro="main" |
---|
10 | tal:define="silo python:test(here.portal_type == 'Folder', here, here.aq_parent); |
---|
11 | default_page python:silo.getProperty('default_page',None); |
---|
12 | silo_dict here/getSiloNavigationDictionary; |
---|
13 | default_title python:silo_dict.get(default_page, {}).get('title', None); |
---|
14 | silo_list here/getSiloData; |
---|
15 | id here/getId"> |
---|
16 | <ul> |
---|
17 | <li tal:condition="default_page"> |
---|
18 | <div> |
---|
19 | <a tal:define="item_title python:default_title or default_page" |
---|
20 | tal:condition="default_page" |
---|
21 | tal:attributes="href string:${silo/absolute_url}/${default_page};" |
---|
22 | tal:content="item_title|default_page"> |
---|
23 | Item Title</a> |
---|
24 | </div> |
---|
25 | </li> |
---|
26 | <tal:navitem repeat="item silo_list"> |
---|
27 | <li tal:define="item_id item/id; |
---|
28 | item_title item/title" |
---|
29 | tal:condition="python:item_id and (item_id not in [default_page,id]) and item_title"> |
---|
30 | <div> |
---|
31 | <a tal:condition="item_title" |
---|
32 | tal:attributes="href string:${silo/absolute_url}/${item/path};" |
---|
33 | tal:content="item_title|nothing"> |
---|
34 | Item Title</a> |
---|
35 | </div> |
---|
36 | </li> |
---|
37 | </tal:navitem> |
---|
38 | </ul> |
---|
39 | </tal:main-macro> |
---|
40 | </div> |
---|
41 | |
---|
42 | </body> |
---|
43 | |
---|
44 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.