Notes on Collage
optilude at gmx.net
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
> 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: http://www.nabble.com/Notes-on-Collage-tf4308384s20094.html#a12291584
Sent from the Product Developers mailing list archive at Nabble.com.
More information about the Product-Developers