Help and instructions for site maintenance

The HREFs of the left sidebar links should always be a full URL or a full path from the root of the site. Because they can appear on pages in subfolders, and because of the way Zope is configured, relative links can lead to an endless chain of phantom URLs which create the appearance of multiple duplicate folders that just keep replicating as you click the links.

While you can hard-code the HREFs in these links, a best practice is to use the TAL formatting language that Page Templates support to create the HREF attributes dynamically. That way the links won't break if the enclosing folder(s) are renamed or moved. There are a number of ways to make the HREFs dynamic...

For pages that are in the same folder as the sidebarLeft file:

    <li><a tal:attributes="href string:${container/absolute_url}/page-id;">Page Title</a></li>    <li>a tal:attributes="href string:${container/page-id/absolute_url};">Page Title</a></li>

For pages that are in a subfolder of the folder that contains the sidebarLeft file:>/p>

    <a tal:attributes="href string:${container/absolute_url}/subfolder1/subfolder2/page-id;">Page Title</a>

To create a link to a page in one of the main section folders, copy one of those links and paste it into a sidebar. Then edit the link to insert your actual page Id and page title, and the Ids of any subfolders when applicable.