Ticket #230 (closed defect: fixed)
Publish and Browse portlets need login handling
| Reported by: | vik | Owned by: | vik |
|---|---|---|---|
| Priority: | major | Milestone: | 0.3alpha - Plumi to Plone 3 |
| Component: | PlumiSkin | Severity: | |
| Keywords: | Cc: | ||
| Who will test this: |
Description
The publish and browse portlets in 0.3 only work properly if the user is logged in. Need functionality to detect non-logged in user and point to login page.
Attachments
Change History
comment:2 Changed 4 years ago by vik
- Status changed from new to closed
- Resolution set to fixed
http://dev.plone.org/collective/changeset/87997/plumi.skin/trunk
Fixed issue with publish page via the publish.pt template (re-introduced into plumi.skin). Login handling is now handled by standard plone security (which includes a redirect back to the original page once logged in) rather than inside the template itself. The template may be better suited to live in plumi.app, depending on policy.
The publish and browse portlets currently link to a relative 'publish' and 'taxonomy' address. So rather than linking to portal_url/publish, the link will go to the current address + '/publish'. So if a user is looking at a page http://plumisite/foo/bar then clicks the publish link, they will end up at http://plumisite/foo/bar/publish. This still resolves to the publish page correctly in most cases, unless there is a higher-precedence 'publish' object. This _should_ work correctly in most cases, and is due to the use of the static text portlet to make things simple. Another alternative is to install the collective.portlet.tal product, and make a TAL-based portlets like so:
portlet-publish: <div class="portlet" id="portlet-publish">
<a tal:define="portal_url context/@@plone_portal_state/portal_url"
tal:attributes="href string:${portal_url}/publish" href="/publish">
<span i18n:translate="Publish">Publish</span>
</a>
</div>
portlet-browse: <div class="portlet" id="portlet-browse">
<a tal:define="portal_url context/@@plone_portal_state/portal_url"
tal:attributes="href string:${portal_url}/taxonomy" href="/taxonomy">
<span i18n:translate="Browse">Browse</span>
</a>
</div>
