Creating a space template

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2006 02:54 PM
Hi Developers,
I am trying to create custom space template which is similar to software_engineering_project.xml. In my xml i have more than 20 folders spaces configuration with different level in my custom xml file.
For this,
1. I have created a xml file which is similar(not the same space name ) to software_engineering_project.xml
2. dropped this xml file in the <project>/repository/config/alfresco/templates
3. I included the my xml template file in bootstrap_context.xml
<props>
<prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.templates.childname}</prop>
<prop key="location">alfresco/templates/mytemplate.xml</prop>
<prop key="messages">alfresco/messages/bootstrap-templates</prop>
</props>
i created the build successfully,
I dont know how to continue this customization, because i think our customization all should comes under 'extension' folder. if it is so, then i can drop my custom view template file,then what about the bootstrap_context.xml
i am struggling to complete this customization, i need some one help..
I planned to test or customize the space wizard by adding one more folder/space configuration in software_engineering_project.xml. for that i have followed the following steps to see the output
1. I run the alfresco server and login as admin,
2 In the create menu i have choosed the 'Advanced Space Wizard',
3 In this wizard i choosed the 'Using Template' radio button
4 In the select template dropdown i can see only the 'Software Engineering Project'. so i selected
4. finally, i completed the wizard successfully.
5. After the space creation, the additionally included folder space is not created.
I dont know why it is?
Can any body help me.
Thanks
I am trying to create custom space template which is similar to software_engineering_project.xml. In my xml i have more than 20 folders spaces configuration with different level in my custom xml file.
For this,
1. I have created a xml file which is similar(not the same space name ) to software_engineering_project.xml
2. dropped this xml file in the <project>/repository/config/alfresco/templates
3. I included the my xml template file in bootstrap_context.xml
<props>
<prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.templates.childname}</prop>
<prop key="location">alfresco/templates/mytemplate.xml</prop>
<prop key="messages">alfresco/messages/bootstrap-templates</prop>
</props>
i created the build successfully,
I dont know how to continue this customization, because i think our customization all should comes under 'extension' folder. if it is so, then i can drop my custom view template file,then what about the bootstrap_context.xml
i am struggling to complete this customization, i need some one help..
I planned to test or customize the space wizard by adding one more folder/space configuration in software_engineering_project.xml. for that i have followed the following steps to see the output
1. I run the alfresco server and login as admin,
2 In the create menu i have choosed the 'Advanced Space Wizard',
3 In this wizard i choosed the 'Using Template' radio button
4 In the select template dropdown i can see only the 'Software Engineering Project'. so i selected
4. finally, i completed the wizard successfully.
5. After the space creation, the additionally included folder space is not created.
I dont know why it is?
Can any body help me.
Thanks
Labels:
- Labels:
-
Archive
3 REPLIES 3

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2006 06:21 PM
A few answers here:
First, you can override the bootstrap sequence by providing your own xx-context.xml in the extensions folder. Within that file, provide your own definition of the bean with id 'spacesBootstrap'.
Second, a template space is just like any other space, except it lives in the Data Dictionary folder. So, if you want to create a template space, just create a Space as usual in the Web Client and decorate it with rules etc. You can then just move or copy that Space into the appropriatet Data Dictionary folder. Or, you can export it to an .acp file, which can then be used in the bootstrap process by placing the .acp in the extension folder and referring to it in the 'spacesBootstrap' bean.
First, you can override the bootstrap sequence by providing your own xx-context.xml in the extensions folder. Within that file, provide your own definition of the bean with id 'spacesBootstrap'.
Second, a template space is just like any other space, except it lives in the Data Dictionary folder. So, if you want to create a template space, just create a Space as usual in the Web Client and decorate it with rules etc. You can then just move or copy that Space into the appropriatet Data Dictionary folder. Or, you can export it to an .acp file, which can then be used in the bootstrap process by placing the .acp in the extension folder and referring to it in the 'spacesBootstrap' bean.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2006 01:21 AM
Hi David,
Thanks for your valuable reply.
Now i have created a template using 'Advanced Space Wizard'
The created template is like the one given below, for this i logged as admin
Project
|_ A
|__ A1
|__A2
|_ B
|__ B1
|__ B2
|_ C
|__ C1
|__ C2
Assume that A,B and C are different level of documents and each level of documents can by accessed by group of users for example
Document(space) A and its sub document (sub spaces) should be accessed by User1,2 and 3. Similarly Space B and space C and it sub spaces are accessed by user4,5 and 6 for (SPACE B) and user7,8 and 9 for (SPACE C).
My question is, I logged as admin and in the 'Manage User Space' action, at present i can set user for SPACE A only but i am not able to set for its sub spaces A1 and A2.
After setting the space A, I logged in as user1 and i get into the space A and space A is empty and i am not able to see the space A1 and A2
So what is the correct configuration to get subspaces also.?
or it is not possible to apply in 1.3 ? if no, please say the steps to configure.
Thanks
Thanks for your valuable reply.
Now i have created a template using 'Advanced Space Wizard'
The created template is like the one given below, for this i logged as admin
Project
|_ A
|__ A1
|__A2
|_ B
|__ B1
|__ B2
|_ C
|__ C1
|__ C2
Assume that A,B and C are different level of documents and each level of documents can by accessed by group of users for example
Document(space) A and its sub document (sub spaces) should be accessed by User1,2 and 3. Similarly Space B and space C and it sub spaces are accessed by user4,5 and 6 for (SPACE B) and user7,8 and 9 for (SPACE C).
My question is, I logged as admin and in the 'Manage User Space' action, at present i can set user for SPACE A only but i am not able to set for its sub spaces A1 and A2.
After setting the space A, I logged in as user1 and i get into the space A and space A is empty and i am not able to see the space A1 and A2
So what is the correct configuration to get subspaces also.?
or it is not possible to apply in 1.3 ? if no, please say the steps to configure.
Thanks

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2006 06:20 AM
Hi
Answered in the other post.
Please avoid dulpicating posts.
Regards
Andy
Answered in the other post.
Please avoid dulpicating posts.
Regards
Andy
