cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Space Templates?

mvanbergen
Champ in-the-making
Champ in-the-making
Hello,

We have a need to create a custom space template similar to the Software Engineering space template that comes with the Alfresco distribution.  I have been unable to find any documentation on how to create a space template.   This section of the Wiki is blank and I don't see any reference to it in the documentation.

Can someone help?

Thanks,
Matt
8 REPLIES 8

kevinr
Star Contributor
Star Contributor
Simply create the folder/file structure that you desire within a sub-folder of your choice in the Company Home > Data Dictionary > Space Templates folder.

The list of available space templates is simply a directory listing of the contents of that folder - and the create process simply duplicates the folder/file structure using a recursive copy - the copy will also include any rules etc. or meta-data that you have applied to the template spaces.

Thanks,

Kevin

mvanbergen
Champ in-the-making
Champ in-the-making
Kevin,

Thank you, I just noticed that it was this simple. 

If we had a need to include a specific template(s) as part of the installation like Alfresco has done with the Software Engineering template versus manually having to go in and create the template space as described above, how would this be done?

Thanks again,
Matt

kevinr
Star Contributor
Star Contributor
Yes it can be done - the default Software Engineering Template is already defined externally and loaded as part of the bootstrap:
tomcat\webapps\alfresco\WEB-INF\classes\alfresco\templates\software_engineering_project.xml

Take a look at the bootstrap config to see how it is integrated:
tomcat\webapps\alfresco\WEB-INF\classes\alfresco\bootstrap-context.xml

Thanks,

Kevin

rosemaryl
Champ in-the-making
Champ in-the-making
Hi Kevin,

I attempted to do this but failed.  I reverted my files back to how they were, then deleted the Software Engineering Project spaces from under Space Templates in the Data Dictionary.  When I tried to create a space from a template, it didn't offer me any options.  Is there anything else that needs to be configured before this works?

Thank you
~Rosemary

rosemaryl
Champ in-the-making
Champ in-the-making
I was able to accomplish this by bootstrapping data from an AMP, in case anyone reading this thread wants some closure on the topic.

j2ee_opensource
Champ in-the-making
Champ in-the-making
I really appreciate your closure response, because I have been trying to create a space template by duplicate the Software_Engineer_Project will NO luck.

nowhere
Champ in-the-making
Champ in-the-making
Hi,
I created a simple space template in DataDictionary/Space Templates and now I'd like to add this at boot. Is there a way to define my workspace externally and loaded as part of the bootstrap starting from what I have in my space template?
Thanks,
Nowhere

alex54
Champ on-the-rise
Champ on-the-rise
Hi everybody,

I am currently working on this: I try to create a personnal 'space template' (in Company Home > Data Dictionary > Space Templates ) via configuration files (like the default 'Software Engineering Project' space template)… But without success…

After some tests, I discovered that all works, but only at the FIRST Start of Alfresco:
==> In fact, (I use the Tomcat Alfresco embedded version for my tests on my local machine), if I change configuration files (Add a new template folder description, add configuration bootstrap, etc…) and only restart Alfresco, there is no effect… But, If I remove the DB (and the alf_data repository), when starting Alfresco, it seems that all configuration (included 'Space templates') are created !!

I think it is crazy, but it is the reallity…

And unfortunatly, once the Space template is created, you cannot modify it (via configuration files I means)…

So, I will use another solution to create some personnals 'Space template' for my project, because if customers will decide to change the space struture of a template, I will be blocked by this problem… (I don't want to modify this structure by hand, vi the Web interface').

I someone has the solution, or find something interessting for my problem, don't hesitate.

Have a nice day.
Alex, a french alfresco user