Ordering items in custom skin view

classic Classic list List threaded Threaded
1 message Options
Jon West Jon West
Reply | Threaded
Open this post in threaded view
|

Ordering items in custom skin view

Hello all, I was wondering about changing the order of items listed
using a custom skin. Basically we have a custom folderish type called
"Staff" where each staff member can put a little description about
themselves and their research. They can also upload various
Presentations and Publications that are contained in the folderish staff
type. When a person views that staff folder the skin used is a custom
skin called staff_view. It shows all the items they have in their folder
  under a different heading for each content type. My question is that I
would like it so the items in 1 catagory (Papers) to be able to be
ordered by the user. Is this something that is possible. Here is the
code that lists all the Papers from the staff_view custom skin.



  <div tal:define="docs python: context.safeContentValues('Publication')"
        tal:condition="docs">
                   <h2>Papers</h2>
                   <dl>

                     <tal:block tal:repeat="doc docs"
     on-error="nothing"><dt><span tal:replace="doc/Title">[doc]</span>

                     <a href="xxx"
                        tal:condition="doc/getBody"
                        tal:attributes="href
string:${doc/absolute_url}/librarydocument_download"><img
     tal:replace="structure python:getattr(here,
'document_icon.gif').tag(title='View document')" /></a>
                     <a href="xxx"
                        tal:condition="doc/getOtherLink"
                        tal:attributes="href
string:${doc/getOtherLink}"><img
     tal:replace="structure
python:getattr(here,'link_icon.gif').tag(title='View document at
external site')" /></a>
                     <a href="xxx"
                        tal:condition="doc/getMedlineLink"
                        tal:attributes="href
string:${doc/getMedlineLink}"><img
     tal:replace="structure
python:getattr(here,'medline_icon.gif').tag(title='View document at
Medline')" /></a>
                     <a href="xxx"
                        tal:condition="python:
user.has_permission('Manage content', doc)"
                        title="Edit document"
                        tal:attributes="href
string:${doc/absolute_url}"><img
     tal:replace="structure here/extedit_icon.gif" /></a>

                   </dt>
                       <dd tal:content="doc/Description">[descrip]</dd>
                     </tal:block>
                   </dl>
               </div>



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Plone-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users