How to find paths for creation of folders while bootstraping?

cancel
Showing results for 
Search instead for 
Did you mean: 
kartech11
Active Member II

How to find paths for creation of folders while bootstraping?

Jump to solution

I want to bootstrap a folder within my site and further sub-folders within that folder.

1. How do I find out the complete path wherein to put my initial folder 

2. To put my sub folder within the above folder, will the path be whatever is in #1 followed by /folder-name

3. I have a site called 'MyTestSite' , how can I create a folder within this site using bootstrapping (how can I find out the path?)

currently I am able to bootstrap to company_home/dictionary but would want to bootstrap the folders and sub folders to my site.

<bean id="myModule.bootstrap"
      class="org.alfresco.repo.module.ImporterModuleComponent"
      parent="module.baseComponent">

    <!-- Module Details -->
    <property name="moduleId" value="alfresco-bootstrap-platform-jar" />
    <property name="name" value="myModuleBootstrap" />
    <property name="description" value="My Modules initial data requirements" />
    <property name="sinceVersion" value="1.0-SNAPSHOT" />
    <property name="appliesFromVersion" value="1.0-SNAPSHOT" />

    <!-- Data properties -->
    <property name="importer" ref="spacesBootstrap"/>
    <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_email_templates.xml</prop>
            </props>
        </list>
    </property>

</bean>
1 Solution

Accepted Solutions
afaust
Master

Re: How to find paths for creation of folders while bootstraping?

Jump to solution

Use the Node Browser tool (either in the Repository Admin Console or Share Admin Tools) to identify the XPath ("path" in your XML) you need to use to address specific folders.

View solution in original post

1 Reply
afaust
Master

Re: How to find paths for creation of folders while bootstraping?

Jump to solution

Use the Node Browser tool (either in the Repository Admin Console or Share Admin Tools) to identify the XPath ("path" in your XML) you need to use to address specific folders.