Home › Forums › DITA and XMetaL Discussion › DITA Map template, with pre-inserted dita files › Reply To: DITA Map template, with pre-inserted dita files
Reply to: DITA Map template, with pre-inserted dita files
March 13, 2015 at 5:41 pmI think what you are asking for is a way to create a number of different files with a single click? There is no feature built into the software that will do this. The closest is the “templates” feature, but templates consist of single files in XMetaL Author. You can get most of the way there though. You can certainly create a template for each of your files and include as much content in them as is needed to begin working on that individual file.
Basically, what you see in File > New (dialog box) is defined by the files and folders inside the /Template subfolder of your XMetaL Author installation.
If what you describe is something you need to do on a regular basis then I would suggest this:
1. Create an empty folder anywhere on your machine or in your regular storage space (network drive for example). This folder and everything it contains will be your “template”.
2. Create all your maps and the files each of them reference inside that folder, in subfolders if necessary. This can include as many files as you need. All the links between them will be set, but they won't contain any real content (unless that content needs to appear in everything you create).
3. Remove all the @id attributes from all the files. This will allow XMetaL Author Enterprise's “auto-id” feature to set the @id value for elements (see Help topic “DITA Options” and the section “Auto-assign element IDs”).
4. Each time you need to use this “template” copy the entire folder, give it a new name / location in your storage, then open each file in XMetaL Author Enterprise and add your content.
If a CMS is involved then a specific feature that does this might exist in the CMS itself, or it might be possible to create something like it. Consult with the vendor for specific information.