Home

Questions about content types

You are here

2 posts / 0 new
Last post
Questions about content types

Hi community,

I need to evaluate Alfresco's feature for the company where i'm staging.I tried to customize some aspects, but now I'm stuck on content types.

I get the configuration files (made by Jeff Potts), from this site http://www.optaros.com/blog/jpotts#/blogs/alfresco-developer-guide-source-reorg-and-32-community-update.

Setup:
Ubuntu 9.04 desktop.
Alfresco Community 3.2. (nightly build 14-07)

According the documentation my configuration is like..

copy pasted scModel.xml in alfresco/extensions/model

<?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>Optaros</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" />
<import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" />
</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>
</type>
 
<type name="sc:marketingDoc">
<title>Someco Marketing Document</title>
<parent>sc:doc</parent>
</type>
 
<type name="sc:whitepaper">
<title>Someco Whitepaper</title>
<parent>sc:marketingDoc</parent>
</type>
</types>
 
</model>

copy pasted someco-model-context.xml in alfresco/extension

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
 
<beans>
<!-- Registration of new models -->
<bean id="someco.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/model/scModel.xml</value>
</list>
</property>
</bean>
</beans>

and finaly copy paste web-client-config-custom.xml in alfresco/extension

<alfresco-config>
 
<!-- show related documents association on doc property sheet -->
<config evaluator="node-type" condition="sc:doc">
<property-sheet>
<show-association name="sc:relatedDocuments" />
</property-sheet>
</config>
 
<!-- add someco types to add content list -->
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="sc:doc" />
<type name="sc:whitepaper" />
</content-types>
</config>
 
<config evaluator="string-compare" condition="Action Wizards">
 
<!-- The list of types shown in the is-subtype condition -->
<subtypes>
<type name="sc:doc" />
<type name="sc:whitepaper" />
</subtypes>
 
<!-- The list of content and/or folder types shown in the specialise-type action -->
<specialise-types>
<type name="sc:doc" />
<type name="sc:whitepaper" />
</specialise-types>
</config>
 
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="sc:doc" />
<type name="sc:whitepaper" />
</content-types>
</advanced-search>
</config>
 
</alfresco-config>

Then i restarted Alfresco and tryed to upload content but i get these error on explorer

my alfresco.log show this error

10:30:41,470 INFO  [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
10:30:41,473 INFO [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
10:30:41,485 INFO [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/opt/Alfresco/tomcat/shared/classes/alfresco-global.properties]
10:30:41,667 INFO [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:30:54,490 INFO [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [/opt/Alfresco/tomcat/shared/classes/alfresco/extension/subsystems/Authentication/alfrescoNtlm/alfrescoNtlm1/Custom-Ntlm.properties]
10:31:13,445 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
10:31:14,889 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
10:31:20,770 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [default]
10:31:20,823 INFO [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:31:22,258 WARN [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.
10:31:22,259 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [default] complete
10:31:22,618 INFO [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /opt/Alfresco/AlfrescoRepository_data
10:31:22,804 INFO [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply ...
10:31:23,579 INFO [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
10:31:23,583 INFO [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
10:31:23,606 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'fileServers' subsystem, ID: [default]
10:31:23,703 INFO [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:31:24,758 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [managed, alfrescoNtlm1]
10:31:24,776 INFO [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:31:25,265 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [managed, alfrescoNtlm1] complete
10:31:25,265 WARN [org.alfresco.fileserver] No enabled CIFS authenticator found in authentication chain. CIFS Server disabled
10:31:25,288 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [default] complete
10:31:25,288 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [default]
10:31:25,340 INFO [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:31:25,454 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [default] complete
10:31:25,456 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [default]
10:31:25,537 INFO [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:31:25,543 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [default] complete
10:31:25,633 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_14-b08; maximum heap size 506,313MB
10:31:25,633 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community): Current version 3.2.0 (2056) schema 3000 - Originally installed version 3.2.0 (2056) schema 3000
10:31:42,970 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'wcm_deployment_receiver' subsystem, ID: [default]
10:31:43,024 INFO [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:31:43,199 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'wcm_deployment_receiver'

For sure I miss some skill about installation and configuration, but the stockpile of wiki/documentation confuse me a bit. Someone can help me to work this simple test and enlight me if i need some explanation?
Sorry for my english and thanks in advance.

Claudio.

Re: Questions about content types

Hi,
Rev 15854 (21/08/2009) was "Fix NPE in ClassFeatureBehaviourBinding". I am not sure if this was a regression since 3.2 Community was released or if it was present in 3.2 Community.
Regards

Derek Hulley
Senior Software Engineer, Alfresco
http://docs.alfresco.com/ - Alfresco Docs
http://issues.alfresco.com/ - JIRA bug reporting site