Add a new store archive to the Publish wizard
You can add a store archive to the Publish wizard in either the default view, or in a particular view. You must have Site Administrator access to complete either of these tasks.
- To add the new store archive to the default view:
- Ensure that you have Site Administrator access.
- Open the WebSphere Commerce configuration file and locate the SarPath attribute of the DevTools element. If the directory specified by this attribute does not already exist, create it.
- Copy the store archive file that you want to add to the directory identified in step 2.
- Verify that the new store archive is displayed in the Default view of the Publish wizard.
- To add the store archive to a particular view:
- Open the SARRegistry.xml file. It is located in the following directory:
- AIX|Linux|Solaris|I5/OS|Windows:
WC_installdir/wc.ear/xml/tools/devtools
- WC_profiledir/xml/tools/devtools
- Add a SampleSAR element for the archive you are adding; for example
<SampleSAR fileName="ConsumerDirect.sar" relativePath="ConsumerDirect"> <view name="ConsumerDirect" /> <view name="default" /> <html locale="de_DE" featureFile="" sampleSite="de_DE/B2C/FashionFlow/index.html"/> <html locale="en_US" featureFile="" sampleSite="en_US/B2C/FashionFlow/index.html"/> <html locale="es_ES" featureFile="" sampleSite="es_ES/B2C/FashionFlow/index.html"/> <html locale="fr_FR" featureFile="" sampleSite="fr_FR/B2C/FashionFlow/index.html"/> <html locale="it_IT" featureFile="" sampleSite="it_IT/B2C/FashionFlow/index.html"/> <html locale="ja_JP" featureFile="" sampleSite="ja_JP/B2C/FashionFlow/index.html"/> <html locale="ko_KR" featureFile="" sampleSite="ko_KR/B2C/FashionFlow/index.html"/> <html locale="pt_BR" featureFile="" sampleSite="pt_BR/B2C/FashionFlow/index.html"/> <html locale="zh_CN" featureFile="" sampleSite="zh_CN/B2C/FashionFlow/index.html"/> <html locale="zh_TW" featureFile="" sampleSite="zh_TW/B2C/FashionFlow/index.html"/> </SampleSAR>
Where:
- fileName
- The name of the store archive.
- relativePath
- The directory path relative to the sampleSarPath attribute of the DevTools element in the WebSphere Commerce configuration file.
- name
- The name of the view that the store archive will display in from the Publish user interface. Note that a store archive may display in multiple views. For example, ConsumerDirect.sar will display in both the Consumer Direct view and the default view.
- locale
- The locale for the HTML preview files.
- featureFile
- Deprecated and no longer used.
- sampleSite
- The location of the locale-specific store preview page relative to the following path:
- WC_eardir/SiteAdministration.war/ tools/devtools/preview
- Verify that the new store archive is displayed in the appropriate view of the Publish wizard.
Related Concepts
Store publish process
Store archive
Related tasks
Publishing a store archive using the Publish wizard
Publishing a store archive using the publishstore utility
Related Reference
Publish wizard configuration parameters