Notes on Collage

Martin Aspeli optilude at
Thu Aug 23 11:13:49 UTC 2007

Malthe Borch-2 wrote:
>> Note that inline editing can be made to fall back gracefully in 2.5, if 
>> you use AT field macros:
>> <div metal:use-macro="python:context.widget('fieldName', mode='view') />
>> That'll get inline editing on 3.0, and not fail in 2.5.
> That might seem like a possible approach, but a) it would have to be 
> using unique target ids (a function of the fieldname and some unique 
> identifier for the context), b) it won't be able to support using 
> <h2>'s as title tags (necessary since the document must only have one 
> <h1>).
> a) could be fixed for 3.0.1; maybe context.widget('fieldname', 
> mode='view', target='my_unique_target')?
> b) would probably need to specify a custom title widget.

Well, 'title' is just a field. I think if you did the standard widget macro,
you wouldn't get an H1, you'd get a div or a span. There is a magic KSS
macros that does the documentFirstHeading markup stuff, but that's a bit


View this message in context:
Sent from the Product Developers mailing list archive at

More information about the Product-Developers mailing list