Plone 修改下拉菜单\u sections.pt(WebOuturier.dropdownmenu)
有没有人有通过ZMI修改下拉列表_sections.pt的经验?这是WebOuturier.dropdownmenu附带的页面模板。我想修改它,使它成为一个大菜单(一个支持列)?可能吗Plone 修改下拉菜单\u sections.pt(WebOuturier.dropdownmenu),plone,Plone,有没有人有通过ZMI修改下拉列表_sections.pt的经验?这是WebOuturier.dropdownmenu附带的页面模板。我想修改它,使它成为一个大菜单(一个支持列)?可能吗 我正在使用plone.app.theming来实现这一点。该模板未在门户网站\u视图\u自定义中公开。正在从文件系统调用它 如果您想要mega菜单,请尝试使用Plone站点中的插件。您只需在主题中添加一个文件夹: overrides 并添加一个名为 webcouturier.dropdownmenu.brows
我正在使用plone.app.theming来实现这一点。该模板未在门户网站\u视图\u自定义中公开。正在从文件系统调用它 如果您想要mega菜单,请尝试使用Plone站点中的插件。您只需在主题中添加一个文件夹:
overrides
并添加一个名为
webcouturier.dropdownmenu.browser.dropdown_sections.pt
与官方的内容(你可以复制粘贴它从githuba)
小节
-
选项卡名称
子菜单
关于如何制作megamenu,这取决于你。plone的问题已经解决了。尝试使用以下技术将WebOuturier.dropdownmenu转换为megamenu是可能的,但除非你已经非常擅长这方面,否则最好尝试使用本答案中建议的产品h2o。
<tal:sections tal:define="portal_tabs view/portal_tabs"
tal:condition="portal_tabs"
i18n:domain="plone">
<h5 class="hiddenStructure" i18n:translate="heading_sections">Sections</h5>
<ul id="portal-globalnav"
tal:define="selected_tab python:view.selected_portal_tab"
><tal:tabs tal:repeat="tab portal_tabs"
><li tal:define="tid tab/id;
subitems python:view.getTabObject(tabUrl = tab['url'], tabPath = tab.get('path'));
item_clickable python:view.enable_parent_clickable or not subitems"
tal:attributes="id string:portaltab-${tid};
class python:selected_tab==tid and 'selected' or 'plain'"
><a href=""
tal:content="tab/name"
tal:attributes="href tab/url;
title tab/description|nothing;
class python:item_clickable and 'plain' or 'noClick'">
Tab Name
</a
><tal:block tal:condition="subitems">
<ul class="submenu">
<tal:subitems tal:replace="structure subitems">
<tal:comment replace="nothing">Submenu</tal:comment>
</tal:subitems>
</ul>
</tal:block></li></tal:tabs></ul>
</tal:sections>