Changing an object's sortable_title

Martin Aspeli optilude at gmx.net
Wed Apr 4 17:23:53 UTC 2007




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

-- 
View this message in context: http://www.nabble.com/Changing-an-object%27s-sortable_title-tf3526441.html#a9841592
Sent from the Plone Product Developers mailing list archive at Nabble.com.





More information about the Product-Developers mailing list