The SiteRepository
contains two string properties that access site icons: siteIcon
and favicon
. These properties contain a path to an uploaded image file.
Set a default value for the image properties that point to image directories that are the start path for all images.
For example, create an image directory such as /images/storefront/site/
that can store all images for a site. For each new site, you would only have to fill out the filename part of the path, such as /images/storefront/site/favicon.ico
or /images/storefront/site/siteIcon.png
.
Implementing a Custom Icon
To replace icons for out-of-the-box item types or provide icons for custom types, follow these steps:
Add
siteRepository.xml
at theplatform-home-exe-version\home\servers\atg_publishing_lockserver\localconfig\atg\multisite
location.Add the item descriptor for which custom icon is needed.
Add attribute name
largeFlexIcon
and provide the image path in the value attribute.jpeg
,jpg
,gif
,png
, andbmp
are supported formats.Add your custom image at
platform-home-exe-version\BCC\j2ee-apps\ControlCenter.ear\ControlCenter.war\images
Restart your publishing server and verify new icon in Site Administration.
Refer to the sample code for overriding the siteGroup icon:
<gsa-template> <item-descriptor name="siteGroup"> <attribute name="largeFlexIcon" value="images/iconSmallSegment.png"/> </item-descriptor> ..</gsa-template>