[Product-Developers] extend a schema by location

Wichert Akkerman wichert at wiggy.net
Thu May 28 14:09:03 UTC 2009


Previously Encolpe Degoute wrote:
> Hello,
> 
> I have the following usecase:
> When a member create a document under a certain location the document
> should have a new field with storing specific tags.
> For each member this location is different but computable.

If you are dealing with a selection type of field you can use a
vocabulary factory which takes the context into account.

> I see three solutions:
> 
> - subtyping every content type (I really don't want that)
> 
> - use a behavior of schemaextender that allow such things
> 
> - dynamically adapt documents during their creation
> 
> 
> Does schemaextender allow such behavior ?

schemaextender supports that: just look at the aq chain of the instance
that is passed in.

Wichert.

-- 
Wichert Akkerman <wichert at wiggy.net>    It is simple to make things.
http://www.wiggy.net/                   It is hard to make things simple.




More information about the Product-Developers mailing list