How to make a footer to automatically display items from the main menu in Plone?

I use Plone 4.1.4 with Doormat and Diazo at the institute I work in, and Footer needs to be done manually by adding each column and element that is connected internally to the elements from the main menu.

I want this footer, which is a site map, to be automatically changed every time a user creates, edits, or deletes an item from the main menu (content folder).

When I received the assignment, I noticed that many of these links in the footer are out of date, and since there are many users in each section of the institute who are allowed to change the structure, I know that they will not update both folders and the footer.

I searched the Internet for some product or hint, but I can not find anything that will solve this problem.

enter image description here

+4
source share
2 answers

If your Diazo theme was created as a Python package using mr.bob or zopeskel, you probably already have one z3c.jbot, which makes it easy to override the available templates. If so, you probably have a directory template_overridesor similar directory in the package. If so, just paste the file with the name plone.app.layout.viewlets.footer.ptwith the contents into it:

<div i18n:domain="plone"
 id="portal-footer">

<ul id="portal-doormat"
    class="navTreeLevel0 visualNoMarker">
    <tal:sitemap replace="structure context/@@sitemap/createSiteMap" />
</ul>

</div>

Then wear off!

Alternatively, you can replace colophon by naming the file plone.app.layout.viewlets.colophon.pt.

Python ( Diazo ), portal_view_customizations ZMI, .

. portal_properties, navtree_properties. CSS, .

+3

All Articles