cancel
Showing results for 
Search instead for 
Did you mean: 

Forms engine with mode='create'

willemvde
Champ in-the-making
Champ in-the-making
Hi,

How do you make a create-form for a new type in Share?

I created an edit-form given a noderef. But when I want to generate a form for my custom model, I have some problems. The wiki says that "itemKind:type" is not supported:
itemKind: The "kind" of item the form is for, the only supported kind currently is "node".

I would configure the form-engine as follows:
itemKind=type and itemId=custom:model

It generates a form with all the fields, so also the "Node DB Identifier" and "Store Protocol:" fields Smiley Tongue
[img]http://lh6.ggpht.com/_J51uckDMXcg/TCn5ul9CihI/AAAAAAAAA3k/Iht5Ss4B_ek/s912/Vastleggen%20in%20volledi...[/img]

I looked at the blog-application in Share but they don't use the form engine, right? Is there something in Share that does use the form engine to create a form in mode="create"?
2 REPLIES 2

decla
Champ in-the-making
Champ in-the-making
Hi,

In Share the "create-content" page uses the form-service with kind "type" (mode create). In the form-configuration of 'cm:content' type I saw that definition of kind "type" forms (on create, with nodeType as parameter) is not the same like kind "node" form (on editing, with nodeRef as parameter).

For kind "node" use:
<config evaluator="node-type" condition="my:CustomType">

For kind "type" use:
<config evaluator="model-type" condition="my:CustomType">

Note: This works for my custom type in Alfresco Enterprise Share 3.3. I don't know in which versions this feature is avaiable.

Sincerely,
decla

willemvde
Champ in-the-making
Champ in-the-making
Thanks  Smiley Very Happy

Forgot about the "model-type" in the config.