source: products/quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/browser/templates/sections_recurse.pt

Last change on this file was 3656, checked in by gvizdyk, 11 years ago

fixed 'item_remote_url'

  • Property svn:eol-style set to native
File size: 2.7 KB
RevLine 
[1194]1<tal:master define="level options/level|python:0;
[2657]2                    children options/children | nothing;
3                    plonefour view/is_plone_four"
[3628]4            i18n:domain="plone"
5    ><metal:main define-macro="sections_main"
6        ><tal:navitem repeat="node children"
7            ><li tal:define="is_current      node/currentItem;
8                             is_in_path      node/currentParent;
[3631]9                             li_id           string:portaltab-${node/id}-level$level;
[3642]10                             item_url        node/getURL;
[3656]11                             item_remote_url node/getRemoteUrl|nothing;
[3642]12                             link_remote     node/link_remote|nothing;
13                             item_url        python:link_remote and item_remote_url or item_url;
[3628]14                             li_curr_class   python:is_current and 'selected' or '';
15                             li_extr_class   python:(is_in_path and not is_current) and 'selected' or '';
16                             li_extr_class   python:(not (is_in_path or is_current)) and li_extr_class + 'plain' or li_extr_class;
17                             li_class string:${li_curr_class}${li_extr_class};
18                             li_class python:li_class or nothing"
[3631]19                 tal:attributes="class li_class; id li_id"
[3628]20                ><tal:level define="show_children node/show_children;
21                            children node/children;
22                            show_icons view/conf/show_icons;
23                            item_icon node/item_icon;
24                            item_type node/normalized_portal_type | nothing;
25                            a_class python:children and 'hasChildrens' or nothing"
[3642]26                    ><a tal:attributes="href item_url;
[3628]27                                        title node/Description|nothing;
28                                        class a_class"
29                        ><img tal:condition="python: show_icons and not plonefour"
30                              tal:replace="structure item_icon/html_tag | nothing"
31                        /><span tal:content="node/Title"
32                                tal:attributes="class python: plonefour and show_icons and item_type and 'contenttype-'+ item_type or nothing"
33                            >Selected Item Title</span
[3630]34                        ></a
[3631]35                    ><ul tal:attributes="class string:globalSectionsLevel$level"
[3630]36                         tal:condition="python: len(children) > 0 and show_children"
37                        ><li tal:replace="structure python:view.recurse(children=children, level=level+1)"
38                            >SubMenu</li
39                        ></ul
40                    ></tal:level
41                ></li
42            ></tal:navitem
43        ></metal:main
44    ></tal:master
45>
Note: See TracBrowser for help on using the repository browser.