Ticket #230 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

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:


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.


Change History

comment:1 Changed 9 years ago by vik

  • Owner changed from andycat to vik

comment:2 Changed 9 years ago by vik

  • Status changed from new to closed
  • Resolution set to fixed

Fixed issue with publish page via the template (re-introduced into 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, 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>



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>




Add a comment

Modify Ticket

as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.