TemplatePart - removeIncludeByDBKey
TemplatePart - removeIncludeByDBKey
Description :
This command removes an include from a template part. You must provide the name of a template, the template group, the name and type of the template part, and the path to the server objects that are currently included.
For a complete list of the model types you can remove an include, see the TemplatePart removeIncludeByName command.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description |
|---|---|---|
templateKey | DBKey | Handle to the existing template. |
templatePartName | String | Path to the template part to be modified. Note that if you set templatePartType to CUSTOM_OBJECT, then you must set templatePartName to the class name of the custom object as specified in model.xml. |
templatePartType | String | Type of template part for which an include should be removed (see description above). |
includePath | String | Path to the server objects that are currently included. |
Example
The following example removes an include from a template. The objects currently included are .txt files in a directory with a known template handle TEMPLATE_DBKEY:
Script
ASSET_TYPE="DIRECTORY"
ASSET_PATH="/C"
INCLUDE_FILES="*.txt"
RESULT=`blcli TemplatePart removeIncludeByDBKey $TEMPLATE_DBKEY $ASSET_PATH $ASSET_TYPE '$INCLUDE_FILES' `