cancel
Showing results for 
Search instead for 
Did you mean: 

I can see the Custom Type and Custom Aspects, BUT !!

bisana
Champ on-the-rise
Champ on-the-rise
HI
   I have done some customType and Custome Aspects, I can see them when I check the document properties in any document
But as explained in page 21 /55  in Artilce "Working with Custom types".
This time, I have used the examples from the article without any changes.
I have trired from yesterday thhree times, each time I did a fresh installation and tried, each time I am getting the same result
My scModel is givel below

<?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" />
</namespaces>
<types>
<!– Enterprise-wide generic document type –>
<type name="sc:doc">
<title>Someco Document</title>
<parent>cm:content</parent>
<associations>
<association name="sc:relatedDocuments">
<title>Related Documents</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>sc:doc</class>
<mandatory>false</mandatory>
<many>true</many>
</target>
</association>
</associations>
<mandatory-aspects>
<aspect>cm:generalclassifiable</aspect>
</mandatory-aspects>
</type>
<type name="sc:whitepaper">
<title>Someco Whitepaper</title>
<parent>sc:doc</parent>
</type>
</types>
<aspects>
<aspect name="sc:webable">
<title>Someco Webable</title>
<properties>
<property name="sc:published">
<type>d:date</type>
</property>
<property name="sc:isActive">
<type>d:boolean</type>
<default>false</default>
</property>
</properties>
</aspect>
<aspect name="sc:productRelated">
<title>Someco Product Metadata</title>
<properties>
<property name="sc:product">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
<property name="sc:version">
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
</aspect>
</aspects>
</model>

My "share-config-custom.xml" is

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

<aspects>
<!– Aspects that a user can see –>
<visible>
<aspect name="sc:webable" />
<aspect name="sc:productRelated" />
</visible>
<!– Aspects that a user can add. Same as "visible" if left empty –>
<addable>
</addable>

  <!– Aspects that a user can remove. Same as "visible" if left empty –>
<removeable>
</removeable>
</aspects>

<types>
<type name="cm:content">
<subtype name="sc:doc" />
<subtype name="sc:whitepaper" />
</type>
<type name="sc:doc">
<subtype name="sc:whitepaper" />
</type>
</types>
</config>
</alfresco-config>


I am not able to ge tthe view as page no 21 , but I could see the custom  aspect and  custom type, when I check any document property
Thanks
Joseph John
1 REPLY 1

bisana
Champ on-the-rise
Champ on-the-rise
I found the reason for each time, why it was not  showing.
Each time when I was  checking (after restarting) I was  not logging out  from the share web interface. When I logged out and logged in again I could see as what explained in the article
But when again , when I check properties of documents, it was showing Custom types and Custom Aspects
As far as  I know, the behavious of this should not happend since it is J2EE, and what is changed should in the server should have  effect as soon as we restart the service.
Thanks
Joseph John