cancel
Showing results for 
Search instead for 
Did you mean: 

Editing content properties

igor_shaldev
Champ in-the-making
Champ in-the-making
Hi,
I have a problem concerning editing custom content properties. I've created a custom model, with few content types with custom properties. For those I've created custom dialogs for creation, and property entry. The problem is when you try to modify the custom content types' properties, the edit dialog shows only the custom properties, and not the default properties. After confirming the changes (no matter if there is no change to the properties), the properties will show up in the modify dialog. Is there a way to fix this problem?

Thanks in advance

Best regards,
Igor
8 REPLIES 8

rliu
Champ in-the-making
Champ in-the-making
It would help if you showed your custom content model and your web-client-config-custom files.

igor_shaldev
Champ in-the-making
Champ in-the-making
Sorry, I forgot that

<config evaluator="node-type" condition="nc:doc">
   <property-sheet>
      <separator name="sep2" display-label-id="nc_doc_props" component-generator="HeaderSeparatorGenerator" />
      <show-property name="nc:index" display-label-id="index" />
      <show-property name="nc:seqIndex" display-label-id="seqind" />
      <show-property name="nc:date" display-label-id="indate" />
      <show-property name="nc:sender" display-label-id="sender" />
      <show-property name="nc:senderId" display-label-id="senderid" />
      <show-property name="nc:sentDate" display-label-id="sentdate" />
      <show-property name="nc:orgUnit" display-label-id="orgunit" />
      <show-property name="nc:expireDate" display-label-id="expdate" show-in-edit-mode="false" />
   </property-sheet>
</config>

I've tried adding name, title, date created, but when I edit the properties, duplicate properties are showing

rliu
Champ in-the-making
Champ in-the-making
Ok, so that's in your web-client-config-custom.xml. Nothing appears abnormal there.

How about your custom content model?

igor_shaldev
Champ in-the-making
Champ in-the-making
Sorry for my late reply I had some problems with my isp. Here is a part of my custom model:

<type name="nc:doc">
      <title>AR Document</title>
      <parent>cm:content</parent>
      <properties>
         <property name="nc:index">
            <type>d:int</type>
            <mandatory>false</mandatory>
         </property>
         <property name="nc:seqIndex">
            <type>d:int</type>
            <mandatory>false</mandatory>
         </property>
         <property name="nc:date">
            <type>d:date</type>
            <mandatory>false</mandatory>
         </property>
         <property name="nc:sender">
            <type>d:text</type>
            <mandatory>false</mandatory>
         </property>
         <property name="nc:senderId">
            <type>d:text</type>
            <mandatory>false</mandatory>
         </property>
         <property name="nc:sentDate">
            <type>d:date</type>
            <mandatory>false</mandatory>
         </property>
         <property name="nc:orgUnit">
            <type>d:text</type>
            <mandatory>false</mandatory>
         </property>
         <property name="nc:expireDate">
            <type>d:date</type>
         </property>
         <property name="nc:regId">
            <type>d:text</type>
         </property>
      </properties>
   </type>

rliu
Champ in-the-making
Champ in-the-making
You customizations look correct. Any exceptions in your server logs?

igor_shaldev
Champ in-the-making
Champ in-the-making
No, none whatsoever

mmynsberghe
Champ on-the-rise
Champ on-the-rise
Hi,

I'm having the same problem
did you ever find out what caused this?

Kind Regards,
Mieke

bhavana
Champ in-the-making
Champ in-the-making
I think you will have to change the component-generator..
<separator name="sep2" display-label-id="nc_doc_props" component-generator="HeaderSeparatorGenerator"/>
change it to
<show-property name="sep2" display-label-id="nc_doc_props" component-generator="MimeTypeSelectorGenerator"/>

may be it should work


thanks