[Legacy Guide - More Info]{class="badge informative" title="Legacy Guide"}
Use variables for setting the Destination Path, Site Name, or File Name options
While generating outputs in AEM Site or PDFs, you can use variables to define the Destination Path, AEM Site Name, or PDF File Name options. You can use a single or a combination of variables to define theses options.
The following table lists the variables that are supported out of the box:
${map_filename}
AEMGuides.ditamap
Destination Path configured as:
/content/output/sites/${map_filename}
Final output location:
/content/output/sites/aemGuides/AEMGuides.html
${map_title}
AEMGuides.ditamap
DITA map Title:
AEMGuides
Destination Path configured as:
/content/output/sites/${map_title}
Final output location:
/content/output/sites/AEMGuides/AEMGuides.html
${preset_name}
AEM Guides PDF Output
DITA map file name:
SampleDita.ditamap
Destination Path configured as:
/content/output/sites/${preset_name}
Final output location:
/content/output/sites/AEM Guides PDF Output/SampleDita.html
${language_code}
SampleDita.ditamap
DITA map file path:
/content/dam/projects/AEM-Guides/en/user-guide/
Destination Path configured as:
/content/output/sites/${language_code}
Final output location:
/content/output/sites/en/SampleDita.html
${map_parentpath}
Note:This variable cannot be used to specify the AEM Site Name or PDF File Name.
SampleDita.ditamap
DITA map file path:
/content/dam/projects/AEM-Guides/en/user-guide
/Destination Path configured as:
/content/output/sites/${map_parentpath}
Final output location:
/content/output/sites/content/dam/projects/AEM-Guides/en/user-guide/SampleDita.html
${path_after_langfolder}
Note: This variable cannot be used to specify the AEM Site Name or PDF File Name.
SampleDita.ditamap
DITA map file path:
/content/dam/projects/AEM-Guides/en/user-guide/
Destination Path configured as:
/content/output/sites/${path\_after\_langfolder}
Final output location:
/content/output/sites/user-guide/SampleDita.html
${system_date}
SampleDita.ditamap
DITA map file path:
/content/dam/projects/AEM-Guides/en/user-guide/
Destination Path configured as:
/content/output/sites/${system_date}
Final output location:
/
content/output/sites/08252023/SampleDita.html
${system_time}
SampleDita.ditamap
DITA map file path:
/content/dam/projects/AEM-Guides/en/user-guide/
Destination Path configured as:
/content/output/sites/${system_time}
Final output location:
/content/output/sites/055612/SampleDita.html
In addition, you can also use the metadata defined for the DITA map or bookmap file as variables. The metadata can be found under the /jcr:content/metadata
node of the DITA map or bookmap file. For example, one of the metadata properties define in the /jcr:content/metadata
node is dc:title
. You can specify ${dc:title}
and the title value is used in the final output.
Parent topic:Output generation