AnsweredAssumed Answered

Got the result without doing steps in Page23-24 for Custom T

Question asked by bisana on Jun 7, 2012
I am trying to create Custom Type, define few properties, then apply it to the documents, In short I am following "Alfresco Developer Series  Working with Custom Content Types", 2'nd edition By Jeff Potts
My Model.xml files is given below

<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="sc:somecomodel" xmlns="">
<!– Optional meta-data about the model –>
<description>Someco Model</description>
<author>Jeff Potts</author>
<!– Imports are required to allow references to definitions in other models
<!– Import Alfresco Dictionary Definitions –>
<import uri="" prefix="d" />
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="" prefix="cm" />
<!– Introduction of new namespaces defined by this model –>
<namespace uri="" prefix="sc" />

  <constraint name="sc:lddoctypeList" type="LIST">
            <parameter name="allowedValues">
                    <value>Article of Associations</value>
                    <value>Board Resolutions</value>
            <parameter name="caseSensitive">

<!– Enterprise-wide generic document type –>

<type name="sc:doc">
<title>Someco Document</title>


<type name="sc:legaldept">
<title>Legal Department Documents</title>

<property name="sc:lddoctype">
                    <index enabled="true">
                        <constraint ref="sc:lddoctypeList"/>

<property name="sc:nameofparty"> 
<constraint ref="sc:partyList" />

<property name="sc:nameofotherparty">

<property name="sc:project">

<property name="sc:lsrno">


Till Page 22, I was able to follow exactly as the document, On page 23 , When I add "node-type"  evaluator and change cm:content to sc:legaldept and restarting the service will make my custom document type defined on the docs disappear. When I remove the "node-type" evaluator I get  the Custom Type properties back,. I tried out in different instance, behavior was similar each time.
Now without doing instruction in
    Configuring the form service for a Custom Type
       Configuring the form service for Custom Properties
I was able to see my  properties defined in the Custom Types applied on documents
Now I did for Advanced search and restarted the service
I am able to see the Custom Type and its properties, and I am able to search and get result
My "share-config-custom.xml" has the below contents

  <config replace="true" evaluator="string-compare" condition="AdvancedSearch">
<!– Forms for the advanced search type list –>
<form labelId="search.form.label.cm_content" descriptionId="search.form.desc.cm_content">cm:content</form>
<form labelId="search.form.label.cm_folder" descriptionId="search.form.desc.cm_folder">cm:folder</form>
<form labelId="type.sc_legaldept" descriptionId="search.form.desc.sc_legaldept">sc:legaldept</form>

<!– Document Library config section –>
<config evaluator="string-compare" condition="DocumentLibrary">

<type name="cm:content">
  <!–<subtype name="sc:doc" />  –>
<subtype name="sc:legaldept" />

<type name="sc:doc">
<subtype name="sc:legaldept" />

Is there any thing wrong it what I am doing.
I am puzzled why my Custom document type properties is not showing ,when I copy "node-type" and doing the changes as per the document.
Is it fine if I don't add node-type and model-type evaluators or if I am not able to do the steps mentioned in 23 and 24

Guidance requested, I am a guy who is not much exposed to propragmming
Joseph John