cancel
Showing results for 
Search instead for 
Did you mean: 

Editing custom properties of content derived from cm:folder

slothrop
Champ in-the-making
Champ in-the-making
In v3.1 have defined a custom content type which has cm:folder as the parent.  I have defined custom properties that I would like to edit in the details page of the web browser.  However, the "OK" button is never active and I can't save any changes I make to the properties.  What do I have to do to make this possible? 

I created the node and originally set the properties using javascript.
6 REPLIES 6

pjcaracuel
Champ in-the-making
Champ in-the-making
Hi,

Can you post the web-client-config-custom.xml?

Regards

slothrop
Champ in-the-making
Champ in-the-making
Thanks for responding, Pedro.  Here is the web-client-config-custom.xml.  The problem I am having is with the sym:application type which has cm:folder as a parent.

<alfresco-config>
   <config evaluator="string-compare" condition="Advanced Search">
      <advanced-search>
         <content-types>
            <type name="sym:application" />
            <type name="sym:document" />
            <type name="sym:author" />
            <type name="sym:toc_item" />
         </content-types>
         <custom-properties>
         </custom-properties>
         <aspects>
         </aspects>
      </advanced-search>
   </config>
   <config evaluator="node-type" condition="chemEdDL:content">
      <property-sheet>
         <show-property name="mimetype" display-label-id="content_type"
            component-generator="MimeTypeSelectorGenerator" />
         <show-property name="size" display-label-id="size"
            converter="org.alfresco.faces.ByteSizeConverter"
            show-in-edit-mode="false" />
         <show-property name="chemEdDL:Audience" />
         <show-property name="chemEdDL:Domain" />
         <show-property name="chemEdDL:Element" />
         <show-property name="chemEdDL:Pedagogy" />
         <show-property name="chemEdDL:Topic" />
         <show-property name="chemEdDL:ID" />
         <show-property name="chemEdDL:abstract" />
         <show-property name="chemEdDL:Collection" />
         <show-property name="chemEdDL:Notes" component-generator="TextAreaGenerator" />
         <show-association name="chemEdDL:relatedDocuments" />
      </property-sheet>
   </config>
   <config evaluator="node-type" condition="sym:author">
      <property-sheet>
         <show-property name="mimetype" display-label-id="content_type"
            component-generator="MimeTypeSelectorGenerator" />
         <show-property name="size" display-label-id="size"
            converter="org.alfresco.faces.ByteSizeConverter"
            show-in-edit-mode="false" />
         <show-property name="sym:authorID" />
         <show-property name="sym:AuthorName" />
         <show-property name="sym:addressLine1" />
         <show-property name="sym:addressLine2" />
         <show-property name="sym:addressLine3" />
         <show-property name="sym:city" />
         <show-property name="sym:state" />
         <show-property name="sym:country" />
         <show-property name="sym:postalCode" />
         <show-property name="sym:email" />
      </property-sheet>
   </config>
   <config evaluator="node-type" condition="sym:document">
      <property-sheet>
         <show-property name="mimetype" display-label-id="content_type"
            component-generator="MimeTypeSelectorGenerator" />
         <show-property name="size" display-label-id="size"
            converter="org.alfresco.faces.ByteSizeConverter"
            show-in-edit-mode="false" />
         <show-property name="sym:documentID" />
         <show-property name="sym:documentName" />
         <show-property name="sym:documentURL" />
         <show-property name="sym:softwareType" />
         <show-property name="sym:softwareVersion" />
         <show-property name="sym:jceDocument" />
      </property-sheet>
   </config>
   <config evaluator="node-type" condition="sym:toc_item">
      <property-sheet>
         <show-property name="mimetype" display-label-id="content_type"
            component-generator="MimeTypeSelectorGenerator" />
         <show-property name="size" display-label-id="size"
            converter="org.alfresco.faces.ByteSizeConverter"
            show-in-edit-mode="false" />
         <show-property name="sym:toc_name" />
         <show-property name="sym:toc_id" />
         <show-property name="sym:toc_order" />
         <show-property name="sym:toc_parent" />
         <show-association name="sym:associatedApplications" />
         <show-association name="sym:toc_child" />
      </property-sheet>
   </config>
   <config evaluator="node-type" condition="sym:application">
      <property-sheet>
         <show-property name="sym:applicationID" />
         <show-property name="sym:applicationName" />
         <show-property name="cm:description" display-label="Description" />
         <show-property name="sym:abstract" component-generator="TextAreaGenerator" />
         <show-property name="sym:releaseFlag" />
         <show-property name="sym:jceRights" />
         <show-property name="sym:instructorNotes" />
         <show-property name="sym:citation" />
         <show-property name="sym:commentsTo" />
         <show-property name="sym:revisionNotes" />
         <show-property name="sym:authorRights" />
         <show-property name="sym:jceReview" />
         <show-association name="sym:authors" />
         <show-association name="sym:associatedDocuments" />
         <show-association name="sym:associatedCommentary" />
         <show-association name="sym:associatedJCEArticles" />
      </property-sheet>
   </config>
   <config evaluator="string-compare" condition="Content Wizards">
      <content-types>
         <type name="chemEdDL:content" />
         <type name="sym:application" />
         <type name="sym:document" />
         <type name="sym:author" />
         <type name="sym:toc_item" />
      </content-types>
   </config>
   <config evaluator="aspect-name" condition="chemEdDL:keywords">
      <property-sheet>
         <separator name="sepCust6" display-label="Keywords" component-generator="HeaderSeparatorGenerator"/>
         <show-property name="chemEdDL:Audience"/>
         <show-property name="chemEdDL:Domain"/>
         <show-property name="chemEdDL:Element"/>
         <show-property name="chemEdDL:Pedagogy"/>
         <show-property name="chemEdDL:Topic"/>
      </property-sheet>
   </config>
   <!– Lists the custom aspect in business rules Action Wizard –>
   <config evaluator="string-compare" condition="Action Wizards">
      <specialise-types>
         <type name="sym:application" />
         <type name="sym:toc_item" />
         <type name="sym:document" />
         <type name="sym:author" />
      </specialise-types>
      <aspects>
         <aspect name="sym:documentProperties" />
      </aspects>
      <subtypes>
      </subtypes>
   </config>
</alfresco-config>

pjcaracuel
Champ in-the-making
Champ in-the-making
Hi,

In my application  I can edit custom properties in my custon folder type. The one difference in both code piece of web-client-config-custom.xml is:

 
<!– Lists the custom aspect in business rules Action Wizard –>
   <config evaluator="string-compare" condition="Action Wizards">
      <specialise-types>
         <type name="sym:application" />
         <type name="sym:toc_item" />
         <type name="sym:document" />
         <type name="sym:author" />
      </specialise-types>
      <aspects>
         <aspect name="sym:documentProperties" />
      </aspects>
      <subtypes>
   <type name="sym:application" />
      </subtypes>

   </config>

Try it

Regards

jayjayecl
Confirmed Champ
Confirmed Champ
Thanks for responding, Pedro.  Here is the web-client-config-custom.xml.  The problem I am having is with the sym:application type which has cm:folder as a parent.

<alfresco-config>
   <config evaluator="string-compare" condition="Advanced Search">
      <advanced-search>
         <content-types>
            <type name="sym:application" />
            <type name="sym:document" />
            <type name="sym:author" />
            <type name="sym:toc_item" />
         </content-types>
         <custom-properties>
         </custom-properties>
         <aspects>
         </aspects>
      </advanced-search>
   </config>
   <config evaluator="node-type" condition="chemEdDL:content">
      <property-sheet>
         <show-property name="mimetype" display-label-id="content_type"
            component-generator="MimeTypeSelectorGenerator" />
         <show-property name="size" display-label-id="size"
            converter="org.alfresco.faces.ByteSizeConverter"
            show-in-edit-mode="false" />
         <show-property name="chemEdDL:Audience" />
         <show-property name="chemEdDL:Domain" />
         <show-property name="chemEdDL:Element" />
         <show-property name="chemEdDL:Pedagogy" />
         <show-property name="chemEdDL:Topic" />
         <show-property name="chemEdDL:ID" />
         <show-property name="chemEdDL:abstract" />
         <show-property name="chemEdDL:Collection" />
         <show-property name="chemEdDL:Notes" component-generator="TextAreaGenerator" />
         <show-association name="chemEdDL:relatedDocuments" />
      </property-sheet>
   </config>
   <config evaluator="node-type" condition="sym:author">
      <property-sheet>
         <show-property name="mimetype" display-label-id="content_type"
            component-generator="MimeTypeSelectorGenerator" />
         <show-property name="size" display-label-id="size"
            converter="org.alfresco.faces.ByteSizeConverter"
            show-in-edit-mode="false" />
         <show-property name="sym:authorID" />
         <show-property name="sym:AuthorName" />
         <show-property name="sym:addressLine1" />
         <show-property name="sym:addressLine2" />
         <show-property name="sym:addressLine3" />
         <show-property name="sym:city" />
         <show-property name="sym:state" />
         <show-property name="sym:country" />
         <show-property name="sym:postalCode" />
         <show-property name="sym:email" />
      </property-sheet>
   </config>
   <config evaluator="node-type" condition="sym:document">
      <property-sheet>
         <show-property name="mimetype" display-label-id="content_type"
            component-generator="MimeTypeSelectorGenerator" />
         <show-property name="size" display-label-id="size"
            converter="org.alfresco.faces.ByteSizeConverter"
            show-in-edit-mode="false" />
         <show-property name="sym:documentID" />
         <show-property name="sym:documentName" />
         <show-property name="sym:documentURL" />
         <show-property name="sym:softwareType" />
         <show-property name="sym:softwareVersion" />
         <show-property name="sym:jceDocument" />
      </property-sheet>
   </config>
   <config evaluator="node-type" condition="sym:toc_item">
      <property-sheet>
         <show-property name="mimetype" display-label-id="content_type"
            component-generator="MimeTypeSelectorGenerator" />
         <show-property name="size" display-label-id="size"
            converter="org.alfresco.faces.ByteSizeConverter"
            show-in-edit-mode="false" />
         <show-property name="sym:toc_name" />
         <show-property name="sym:toc_id" />
         <show-property name="sym:toc_order" />
         <show-property name="sym:toc_parent" />
         <show-association name="sym:associatedApplications" />
         <show-association name="sym:toc_child" />
      </property-sheet>
   </config>
   <config evaluator="node-type" condition="sym:application">
      <property-sheet>
         <show-property name="sym:applicationID" />
         <show-property name="sym:applicationName" />
         <show-property name="cm:description" display-label="Description" />
         <show-property name="sym:abstract" component-generator="TextAreaGenerator" />
         <show-property name="sym:releaseFlag" />
         <show-property name="sym:jceRights" />
         <show-property name="sym:instructorNotes" />
         <show-property name="sym:citation" />
         <show-property name="sym:commentsTo" />
         <show-property name="sym:revisionNotes" />
         <show-property name="sym:authorRights" />
         <show-property name="sym:jceReview" />
         <show-association name="sym:authors" />
         <show-association name="sym:associatedDocuments" />
         <show-association name="sym:associatedCommentary" />
         <show-association name="sym:associatedJCEArticles" />
      </property-sheet>
   </config>
   <config evaluator="string-compare" condition="Content Wizards">
      <content-types>
         <type name="chemEdDL:content" />
         <type name="sym:application" />
         <type name="sym:document" />
         <type name="sym:author" />
         <type name="sym:toc_item" />
      </content-types>
   </config>
   <config evaluator="aspect-name" condition="chemEdDL:keywords">
      <property-sheet>
         <separator name="sepCust6" display-label="Keywords" component-generator="HeaderSeparatorGenerator"/>
         <show-property name="chemEdDL:Audience"/>
         <show-property name="chemEdDL:Domain"/>
         <show-property name="chemEdDL:Element"/>
         <show-property name="chemEdDL:Pedagogy"/>
         <show-property name="chemEdDL:Topic"/>
      </property-sheet>
   </config>
   <!– Lists the custom aspect in business rules Action Wizard –>
   <config evaluator="string-compare" condition="Action Wizards">
      <specialise-types>
         <type name="sym:application" />
         <type name="sym:toc_item" />
         <type name="sym:document" />
         <type name="sym:author" />
      </specialise-types>
      <aspects>
         <aspect name="sym:documentProperties" />
      </aspects>
      <subtypes>
      </subtypes>
   </config>
</alfresco-config>


Hi, if your sym:application type is derived from cm:folder (space), why have you set :
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
         <type name="sym:application" />
etc …
instead of
<config evaluator="string-compare" condition="Space Wizards">
<folder-types>
         <type name="sym:application" />

pjcaracuel
Champ in-the-making
Champ in-the-making
This is correct too.

You must write this in web-client-config-custom.xml

   <config evaluator="string-compare" condition="Space Wizards">
      <folder-types>
         <type name="sym:application/>
      </folder-types>
   </config>

<config evaluator="string-compare" condition="Content Wizards">
      <content-types>
         <type name="chemEdDL:content" />
         <type name="sym:document" />
         <type name="sym:author" />
         <type name="sym:toc_item" />
      </content-types>
   </config>

slothrop
Champ in-the-making
Champ in-the-making
Pedro,
Thank you for pointing out the errors in my web-client-config-custom file.  The corrections did not allow me to edit the properties.  The problem was that mandatory properties did not have values.  When I fixed this (by making them nonmandatory) I was able to edit the properties.