cancel
Showing results for 
Search instead for 
Did you mean: 

Entries in 'share-config-custom.xml' is not refelcting on

bisana
Champ on-the-rise
Champ on-the-rise
Hi All
   I am focusing on creating content Types, I  am following the document by "Fef Potts" (http://ecmarchitect.com/images/articles/alfresco-content/content-article-2ed.pdf). My intention is to create ContentTypes only
I have create my own "aggModel.xml" ,"agg-model-context.xml" and "share-agg-config-custom.xml", I have restarted the alfresco a couple of times and I have not got any error, which makes me think that my configuration files are correct.
After restating the service I cannot see the types which I defined in "Change Type" or in rule configuration with custom type or in specialize type action with in rule config.
I am posting my code here, for getting more advice and feedback
My  aggModel.xml is

<?xml version="1.0" encoding="UTF-8"?>
<!– Definition of new Model –>
<model name="sc:somecomodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<!– Optional meta-data about the model –>
<description>Someco Model</description>
<author>Jeff Potts</author>
<version>1.0</version>

<!– Imports are required to allow references to definitions in other models –>
<imports>
<!– Import Alfresco Dictionary Definitions –>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
<!– Import Alfresco Content Domain Model Definitions –>
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
</imports>
<!– Introduction of new namespaces defined by this model –>
<namespaces>
<namespace uri="http://www.someco.com/model/content/1.0" prefix="sc" />
<namespace uri="http://www.somec.com/model/content/1.0" prefix="lg" />
</namespaces>


<types>
<!– Enterprise-wide generic document type –>


<type name="lg:doc">
<title>NDA  Document</title>
<parent>cm:content</parent>

<properties>

<property name="lg:nameofparty"> 
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>

</type>

<type name="lg:whitepaper">
<title>Legal department Whitepaper</title>
<parent>cm:content</parent>
</type>

<type name="sc:whitepaper">
<title>Someco Whitepaper</title>
<parent>cm:content</parent>
</type>
  

</types>
</model>


My "share-agg-config-custom.xml" is


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

<aspects>
</aspects> 

<types>
<type name="cm:content">
<subtype name="lg:doc" />
<subtype name="lg:whitepaper" />
</type>
<type name="lg:doc">

</type>
</types>
</config>
</alfresco-config>



I have followed the documentation, cross checked, but not able to know what my documentTypes are not reflected in "cangetype "
Advice and guidance requested
Thanks
Joseph John
2 REPLIES 2

afaust
Legendary Innovator
Legendary Innovator
Hello,

by default Share only looks for a share-config-custom.xml for customizations and would not find your file which has a distinct name. You either have to add your file name to the lookup / search path for Share configuration or include that configuration in share-config-custom.xml

Regards
Axel

bisana
Champ on-the-rise
Champ on-the-rise
Thanks Axel, your advice saved me
I renamed the file, restarted the service, now I can see the different document type we defined in document actions,change type field
But still I cannot see it in rule configuration with custom type or in or in specialize type action with in rule config
Thanks
Joseph John