Martin Aspeli wrote:


Eric Steele wrote:
Hello,

Is there a way I can change what gets returned as the sortable_title catalog index value for a custom content type?

I've got Person objects that return a person's full name as the title, but I'd like to be able to sort them using a last name, first name format.

For now, I've created a sortableName index for sorting only my Person objects, but I'd like to be able to sort them properly alongside other content.


Not easily in Plone 2.5. In Plone 3, you'll be able to use an adapter for
this. See CatalogTool.py in CMFPlone for an understanding of how index
works.

Martin


That'll work. Thanks.
Eric


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to