AnsweredAssumed Answered

Bootstrap folder to alfresco

Question asked by kartech11 on Jul 17, 2018
Latest reply on Jul 17, 2018 by afaust

Hi, 

 

I am trying to test how bootstrapping folders work. My alfresco server started up fine with the below bootstrap code for my folders.

1. I am not sure if my bootstrap was picked up, is there a way to check if my 

2. Also its not clear to me where the folder was created , how do I confirm this?

3. what is actually my company_home location? how can I find it out?

 

bootstrap-context.xml

<bean id="customSpacesBootstrap" parent="spacesStoreImporter">
    <property name="useExistingStore">
        <value>${alfresco-bootstrap-platform-jar.bootstrap.data}</value>
    </property>
    <property name="bootstrapViews">
        <list>
            <props>
                <prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}</prop>
                <prop key="location">alfresco/module/alfresco-bootstrap-platform-jar/bootstrap/config_folder_template.xml</prop>
            </props>
        </list>
    </property>
</bean>

 

config_folder_template.xml

<view:view xmlns:view='http://www.alfresco.org/view/repository/1.0'
           xmlns:cm='http://www.alfresco.org/model/content/1.0' xmlns:app='http://www.alfresco.org/model/application/1.0'>

    <cm:folder view:childName='cm:My First Folder'>
        <app:uifacets />
        <cm:name>My First Folder</cm:name>
        <app:icon>space-icon-default</app:icon>
        <cm:title>My First Folder</cm:title>
        <cm:description></cm:description>
    </cm:folder>
</view:view>

Outcomes