On 6/18/10 10:18 , Martin Aspeli wrote:
> On 18 June 2010 15:21, Yuri<[email protected]>  wrote:
>> Hi!
>>
>>   I would like to add to existing content types some fields. Then I can
>> use schema.extender. Then, I would like to apply this "extension" only
>> when "subtyping" is enabled (example: a Document, after pulling down the
>> subtype menu, show more field in edit).
>>
>>   Is there some example code available somewhere? Is it easy to use
>> schemaextender and subtyping together?
>
> Subtyping is just a fancy word for adding a marker interface. Register
> your schema extender adapter for that same marker interface, and you
> should be fine.

I would also use archetypes.schemaextender to manage that marker 
interface as a normal field in the objects edit screen. That way changes 
for the object are not weirdly split over a subtype menu and the edit 
screen. The subtype menu was a bad hack from before schemaextender existed.

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

Reply via email to