Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>We register another page for this purpose and register an portal_actions object action</p> <p>zcml:</p> <pre><code>&lt;browser:page for="plone.portlets.interfaces.ILocalPortletAssignable" class="plone.app.portlets.browser.manage.ManageContextualPortlets" name="manage-homepageportlets" template="templates/managehomepageportlets.pt" permission="plone.app.portlets.ManagePortlets" /&gt; </code></pre> <p>view:</p> <pre><code>class HomepageView(BrowserView): template = ViewPageTemplateFile('templates/homepage_view.pt') </code></pre> <p>action:</p> <pre><code>&lt;object name="homepage portlets" meta_type="CMF Action"&gt; &lt;property name="title"&gt;Homepage-portlets&lt;/property&gt; &lt;property name="url_expr"&gt;string:${portal_url}/@@manage-homepageportlets&lt;/property&gt; &lt;property name="available_expr"&gt;python: here.absolute_url() == portal_url&lt;/property&gt; &lt;property name="visible"&gt;True&lt;/property&gt; &lt;/object&gt; </code></pre> <p>template:</p> <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:metal="http://xml.zope.org/namespaces/metal" xmlns:tal="http://xml.zope.org/namespaces/tal" xmlns:i18n="http://xml.zope.org/namespaces/i18n" metal:use-macro="context/main_template/macros/master" i18n:domain="plone"&gt; &lt;body&gt; &lt;div metal:fill-slot="main"&gt; &lt;h1 class="documentFirstHeading"&gt;Manage Homepage Portlets&lt;/h1&gt; &lt;h2&gt;Top portlets&lt;/h2&gt; &lt;span tal:replace="structure provider:project.homepagetop" /&gt; &lt;h2&gt;Middle portlets&lt;/h2&gt; &lt;span tal:replace="structure provider:project.homepagemiddle" /&gt; &lt;h2&gt;Bottom portlets&lt;/h2&gt; &lt;span tal:replace="structure provider:project.homepagebottom" /&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload