#230: Publish and Browse portlets need login handling
------------------------+---------------------------------------------------
  Reporter:  vik        |       Owner:  vik                        
      Type:  defect     |      Status:  closed                     
  Priority:  major      |   Milestone:  0.3alpha - Plumi to Plone 3
 Component:  PlumiSkin  |     Version:                             
Resolution:  fixed      |    Keywords:                             
------------------------+---------------------------------------------------
Changes (by vik):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 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>

-- 
Ticket URL: <http://plumi.org/ticket/230#comment:2>
Plumi <http://plumi.org/>
Plumi - FOSS Video Sharing Platform
_______________________________________________
Discuss mailing list
[email protected]
http://lists.plumi.org/listinfo/discuss

Reply via email to