My custom dexterity type looks like this:
class IMyType(form.Schema):
title = schema.TextLine(
title=_(u"Title"),
)
address = schema.TextLine(
title=_(u"Address"),
required=False,
)
class MyType(dexterity.Container):
grok.implements(IMyType)
I want the Live Search result looks like this, listing its title and first 3 char of the address value if existing:
Item One
Address[:3]
Item Two
Address[:3]
By default, each item matched will show its title and description. Thus, one solution is making the description field computed from the address field. But I don't know how. Any hint or better suggestion?