Hi All,
I have created one custom content model. In that model I am passing one property to one aspect like this:
model.xml
<aspect name="ab:xyzAspect">
<title>xyz Aspect</title>
<properties>
<property name="ab:abc">
<title>abc</title>
<type>d:text</type>
</property>
</properties>
</aspect>
share.properties file:
aspect.model_xyzAspect=xyz Aspect
form.field.label.model.abc=abc
Also added below in proper tags in share-config.xml
<aspect name="ab:xyzAspect"/>
<show id="ab:abc" />
<field id="ab:abc" label-id="form.field.label.ab.abc"></field>
now after this I have made one document and given this aspect to it.
From share ui it is completely showing value with property and working fine.
But now requirment is changed and this property is directly on type and so I have changed the model according to it.
like:
model.xml
<type name="ab:mno">
<title>mno</title>
<parent>ab:abFunctions</parent>
<properties>
<property name="ab:abc">
<title>abc</title>
<type>d:text</type>
</property>
</properties>
</type>
share.properties file:
type.model_mno=mno
form.field.label.model.abc=abc
Also added below in proper tags in share-config.xml
<type name="ab:mno">
<show id="ab:abc" />
<field id="ab:abc" label-id="form.field.label.ab.abc"></field>
removed aspect from it.
After changing it in model I restarted my server and working fine for new documents but for the older documents its not opening edit properties field and shwoing this can not be viewed.
What should I do to avoid this and is it any possible solution that I can show properties for older documents?
Please help me in this.
Thanks,
Dhrumil