Thanks eric, 'sortable_title' did the trick.
Still having trouble with the best way to do this in my theme product
though.
So as I understand it I need to do the following:
1) Add the generic setup directives to my configure.zcml file
2) Create my new template and put this in my theme package
3) Add a <browser:page ... directive to the configure.zcml file which points
to my new template
4) Amend the types.xml file so that the new view template shows up in the
display menu
However I dont know what information to put in either the <browser:page
directive or the types.xml file.
Has anyone done this before or can anyone point me to some examples?
Thanks
Steven
On Fri, Aug 22, 2008 at 6:18 PM, Israel Saeta Pérez <dukebody@gmail.com>wrote:
> You need to register a extension profile using ZCML and Generic Setup
> directives in the configure.zcml file:
>
> <configure
> xmlns="
http://namespaces.zope.org/zope"
> xmlns:five="
http://namespaces.zope.org/five"
> xmlns:genericsetup="
http://namespaces.zope.org/genericsetup"
> i18n_domain="your.package">
>
>
> <five:registerPackage package="." initialize=".initialize" />
>
> <genericsetup:registerProfile
> name="yourpackage.profile"
> title="Your Package Profile"
> directory="profiles/default"
> description="Default Profile for you package"
> provides="Products.GenericSetup.interfaces.EXTENSION"
> />
>
> </configure>
>
>
>
> On Wed, Aug 13, 2008 at 12:51 PM, steven shade
> <steven.shade1@googlemail.com> wrote:
> > I have found some guidance on the overall process via the following link:
> >
https://weblion.psu.edu/trac/weblion/wiki/ViewTemplates> >
> > >From this I have been able to customise the original standard view to
> show
> > the contents in reverse modified date:
> >
> > <tal:foldercontents define="contentFilter
> > contentFilter|request/contentFilter|python:{'sort_on' : 'modified',
> > 'sort_order' : 'reverse'};
> >
> > However, I cant seem to sort on title, is the title attribute not
> indexed?
> > What do I have to do to be able to achieve this?
> >
> > Also, once I add these templates to my theme product and have amended the
> > types.xml (in profiles/default), do I need to add an entry in
> > configure.zcml?
> > Thanks
> > Steven
> >
> > On Mon, Aug 11, 2008 at 9:45 AM, steven shade <
> steven.shade1@googlemail.com>
> > wrote:
> >>
> >> Hi
> >>
> >> I want to create 2 additional versions of the folder_listing view; one
> >> that shows the files in 'alphabetical title' order and another that
> shows
> >> them in reverse 'date last modified' order. Can someone outline the
> process
> >> involved?
> >> Thanks
> >> Steven
> >
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> > prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> >
http://moblin-contest.org/redirect.php?banner_id=100&url=/> > _______________________________________________
> > Plone-Users mailing list
> > Plone-Users@lists.sourceforge.net
> >
https://lists.sourceforge.net/lists/listinfo/plone-users> >
> >
>
>
>
> --
> Israel Saeta Pérez
>
http://dukebody.com>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
>
http://moblin-contest.org/redirect.php?banner_id=100&url=/> _______________________________________________
> Plone-Users mailing list
> Plone-Users@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/plone-users>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Plone-Users mailing list
Plone-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-users