The value of
@name
within the
defaultContentItem
displays as a label for the cartridge
in the Content Tree in Experience Manager.
To specify a default name for a cartridge:
Insert the
@name
element insidedefaultContentItem
. In the following example a default name of Results List is specified:{ "@description": "${template.description}", "@group": "MainContent", "ecr:createDate": "2016-09-12T17:33:58.542+05:30", "@thumbnailUrl": "thumbnail.png", "ecr:type": "template", "defaultContentItem": { "@name": "Results List", "relRankStrategy": "", "recordsPerPage": "10", "sortOption": { "@class": "com.endeca.infront.navigation.model.SortOption", "label": "Most Sales", "sorts": [{ "@class": "com.endeca.infront.navigation.model.SortSpec", "key": "product.analytics.total_sales", "descending": false }] } },
@name
is a required element. The value you specify in the template becomes the default name when a content administrator creates the page or adds a cartridge. If you insert an empty@name
element, an empty text field displays in Experience Manager and the content administrator can supply a value.