AnsweredAssumed Answered

custom site model

Question asked by .jan on Jul 20, 2015
I am trying to create custom site model in Alfresco. I created model as you can see here:
<?xml version="1.0" encoding="UTF-8"?>
<model name="ts:testModel" xmlns="">

    <!– 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" />
        <import uri="" prefix="st" />

    <!– Introduction of new namespaces defined by this model –>
        <namespace uri="" prefix="ts" />
       <!– New Signia company doc types –>
       <type name="ts:userSite">
            <title>Test User Site</title>
               <property name="ts:userName">
I registered it and it looks like it is working correctly (Dont know how to proper test if my model is loaded and site type is avalaible), but when I am creating site by
siteService.createSite("test-site", "test-site", "Test Site", "A site description", "ts:userSite");
, I will catch error as
Site could not be create, because {}st:site is not a valid site type.

Thanks for help