cancel
Showing results for 
Search instead for 
Did you mean: 

Questions about Template Spaces

fisico
Champ in-the-making
Champ in-the-making
Hi,

I have several questions about Template Spaces.

I know currently that we can create manually a template space by creating a new space in > Data Dictionnary > Space Templates.

My first question is : Once created, where is stored the information about the brand new space template. For example, if I create a space templace named "Test Space Template", where I can find the structure of this space template. Is there a xml file stored on the server ? Is it stored in the database ?

The goal of my first question is to understand how the space template is stored. Because we want to import a space template with for example 1000 subfolders. I can't do that manually. Is it not possible to create a xml file and to put it in a specific path and the system detects this new xml file… Do you understand what I want to do ?
2 REPLIES 2

davidc
Star Contributor
Star Contributor
You'll want to use Export and Import.

The Template Space is stored in the Repository as if it were a normal space i.e. in the Database and Content Store.

So, if you create a light template space with say 1 or 2 sub-folders, you can export that space to a .acp file.  Export is available from 'More Actions' -> View Details -> Actions -> Export.  Check "Include this Space".  This creates a .acp file which itself can be saved to your local file system.

The .acp file is in fact in zip format, so if you unzip it, you'll see an .xml file.  Inside the xml file, you'll see the definition of your template space.  You can generate this xml for your 1000 folders and re-zip it.  The resulting .acp file can then be imported in the templates folder.

fisico
Champ in-the-making
Champ in-the-making
Ok. But what about the uuid ? How generate an unique id ?