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:
Variable
Final Destination Path
Example
${map_filename}
Uses the DITA map files name to create the destination path.
DITA map file name:
Destination Path configured as:
Final output location:
AEMGuides.ditamap
Destination Path configured as:
/content/output/sites/${map_filename}
Final output location:
/content/output/sites/aemGuides/AEMGuides.html
${map_title}
Uses the DITA map title to create the destination path.
DITA map file name:
DITA map Title:
Destination Path configured as:
Final output location:
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}
Uses the output preset name to create the destination path.
Output Preset Name:
DITA map file name:
Destination Path configured as:
Final output location:
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}
Uses the language code where the map file is located to create the destination path.
DITA map file name:
DITA map file path:
Destination Path configured as:
Final output location:
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}
Uses the complete path of the map file to create the destination path.
Note:This variable cannot be used to specify the AEM Site Name or PDF File Name.
Note:This variable cannot be used to specify the AEM Site Name or PDF File Name.
DITA map file name:
DITA map file path:
Destination Path configured as:
Final output location:
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}
Uses the path of the map file after the language folder to create the destination path.
Note: This variable cannot be used to specify the AEM Site Name or PDF File Name.
Note: This variable cannot be used to specify the AEM Site Name or PDF File Name.
DITA map file name:
DITA map file path:
Destination Path configured as:
Final output location:
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}
Uses the current server date to create the destination path.
DITA map file name:
DITA map file path:
Destination Path configured as:
Final output location:
/
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}
Uses the current server time to create the destination path.
DITA map file name:
DITA map file path:
Destination Path configured as:
Final output location:
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
recommendation-more-help
11125c99-e1a1-4369-b5d7-fb3098b9b178