Feature Pack 6 or later

Click-to-edit code snippets in the Aurora starter store

The Aurora starter store has Create and Edit links that are embedded in multiple store pages and store preview pop-up windows. You can review the various code snippets to learn more about the parameters and variables they contain.

You might need to review the code snippets and understand their location in JSP pages if you are:
  • Adding links to your own store.
  • Customizing the links in the Aurora starter store.
  • Adding more links to the Aurora starter store.
  • Changing the storeSelection parameter for one or more Create and Edit links.

Edit links for catalog entries

The following store JSP pages contain Edit links for catalog entries:
  • \Stores\WebContent\Aurora\Layouts\BundleDisplay.jsp
  • \Stores\WebContent\Aurora\Layouts\DynamicKitDisplay.jsp
  • \Stores\WebContent\Aurora\Layouts\PackageDisplay.jsp
  • \Stores\WebContent\Aurora\Layouts\ProductDisplay.jsp
  • \Stores\WebContent\Aurora\Widgets\CatalogEntry\CatalogEntryDisplay.jsp

Here is the code snippet for the link:

<c:if test="${env_inPreview && !env_storePreviewLink}">
	<div class="caption" style="display:none"></div>
	<div class="ESpotInfo">
		<c:url var="clickToEditURL" value="/cmc/EditBusinessObject" context="/">
			<c:param name="toolId" value="catalogManagement"/>
			<c:param name="storeId" value="${storeId}"/>
			<c:param name="storeSelection" value="prompt"/>
			<c:param name="languageId" value="${langId}"/>
			<c:param name="searchType" value="FindAllCatalogEntries"/>
			<c:param name="searchOption.searchText" value="${partNumber}"/>
			<c:param name="searchOption.searchUniqueId" value="${productId}"/>
		</c:url>
		<a id="ProductDisplay_click2edit_Product_${productId}" class="click2edit_button"  
              href="javascript:void(0)" onclick="parent.callManagementCenter('<wcf:out escapeFormat="js" 
              value="${clickToEditURL}"/>');" ><fmt:message key='Click2Edit_product'/></a>
	</div>
</c:if>		

Edit links for categories

The following store JSP pages contain Edit links for categories:
  • \Stores\WebContent\Aurora\Layouts\CategoryNavigationDisplay.jsp
  • \Stores\WebContent\Aurora\Layouts\SubCategoryPage.jsp
  • \Stores\WebContent\Aurora\Layouts\TopCategoryPage.jsp
  • \Stores\WebContent\Aurora\Widgets\ESpot\include\CategorySpot.jspf

Here is the code snippet for the link:

<c:if test="${env_inPreview && !env_storePreviewLink}">
	<div class="caption" style="display:none"></div>
	<div class="ESpotInfo">
		<c:url var="clickToEditURL" value="/cmc/EditBusinessObject" context="/">
			<c:param name="toolId" value="catalogManagement"/>
			<c:param name="storeId" value="${storeId}"/>
			<c:param name="storeSelection" value="prompt"/>
			<c:param name="languageId" value="${langId}"/>
			<c:param name="searchType" value="FindCategories"/>
			<c:param name="searchOption.searchText" value="${categoryPartNumberMap[aStatus.current.key]}"/>
			<c:param name="searchOption.searchUniqueId" value="${uniqueID}"/>
		</c:url>
		<a id="CategoryRecommendation_click2edit_Category_${uniqueID}" class="click2edit_button" 
              href="javascript:void(0)" onclick="parent.callManagementCenter('<wcf:out escapeFormat="js" 
              value="${clickToEditURL}"/>');" ><fmt:message key='Click2Edit_category'/></a>
	</div>
</c:if>

Create and Edit links for e-Marketing Spots

These links are contained in the following store preview pop-up window:

\Stores\WebContent\Aurora\Widgets\ESpot\include\ESpotInfoPopupDisplay.jspf

Here is the code snippet for the Create link:

<c:if test="${!espotFound}">
	<c:url var="clickToCreateURL" value="/cmc/CreateBusinessObject" context="/">
		<c:param name="toolId" value="marketingManagement"/>
		<c:param name="storeId" value="${storeId}"/>
		<c:param name="languageId" value="${langId}"/>
		<c:param name="storeSelection" value="prompt"/>
		<c:param name="objectType" value="EMarketingSpot"/>
		<c:param name="newObjectOption.marketingSpotName" value="${emsName}"/>
	</c:url>
	<a id='click2create_EMarketingSpot_<c:out value="${espotName}"/>' 
           title='<fmt:message key="Click2Create_espot" bundle="${previewText}"/>' class="click2create_button" href="javascript:void(0)" 
          onclick="window.parent.callManagementCenter('<wcf:out escapeFormat="js" value="${clickToCreateURL}"/>');">
			<fmt:message key="Click2Edit_Create" bundle="${previewText}"/>
	</a>
</c:if>

Here is the code snippet for the Edit link:

<c:if test="${espotFound}">
	<c:url var="clickToEditURL" value="/cmc/EditBusinessObject" context="/">
		<c:param name="toolId" value="marketingManagement"/>
		<c:param name="storeId" value="${storeId}"/>
		<c:param name="languageId" value="${langId}"/>
		<c:param name="storeSelection" value="prompt"/>
		<c:param name="searchType" value="FindEMarketingSpots"/>
		<c:param name="searchOption.searchText" value="${emsName}"/>
		<c:param name="searchOption.searchUniqueId" value="${emsId}"/>
	</c:url>
	<a id="click2edit_EMarketingSpot_${emsId}" href="javascript:void(0)" 
          title='<fmt:message key="Click2Edit_espot" bundle="${previewText}"/>' class="click2edit_button" 
          onclick="window.parent.callManagementCenter('<wcf:out escapeFormat="js" value="${clickToEditURL}"/>');">
			<fmt:message key="Click2Edit_Edit" bundle="${previewText}"/>
	</a>
</c:if>

Create and Edit links for web activities

These links are contained in the following store preview pop-up window:

\Stores\WebContent\Aurora\Widgets\ESpot\include\ESpotInfoPopupDisplay.jspf

Here is the code snippet for the Create link:

<c:url var="clickToCreateURL" value="/cmc/CreateBusinessObject" context="/">
	<c:param name="toolId" value="marketingManagement"/>
	<c:param name="storeId" value="${storeId}"/>
	<c:param name="languageId" value="${langId}"/>
	<c:param name="storeSelection" value="prompt"/>
	<c:param name="objectType" value="WebActivity"/>
	<c:param name="newObjectOption.marketingSpotId" value="${emsId}"/>
</c:url>
<a id="click2create_WebActivity_${emsId}" href="javascript:void(0)" 
      title='<fmt:message key="Click2Create_webactivity" bundle="${previewText}"/>' class="click2create_button" 
      onclick="window.parent.callManagementCenter('<wcf:out escapeFormat="js" value="${clickToCreateURL}"/>');">
		<fmt:message key="Click2Edit_Create" bundle="${previewText}"/>
</a>

Here is the code snippet for the Edit link:

<c:url var="clickToEditURL" value="/cmc/EditBusinessObject" context="/">
	<c:param name="toolId" value="marketingManagement"/>
	<c:param name="storeId" value="${storeId}"/>
	<c:param name="languageId" value="${langId}"/>
	<c:param name="storeSelection" value="prompt"/>
	<c:param name="searchType" value="FindActivities"/>
	<c:param name="searchOption.searchText" value="${param6}"/>
	<c:param name="searchOption.searchUniqueId" value="${param1}"/>
</c:url>
<a id="click2edit_WebActivity_${param1}" href="javascript:void(0)" 
      title='<fmt:message key="Click2Edit_webactivity" bundle="${previewText}"/>' class="click2edit_button" 
      onclick="window.parent.callManagementCenter('<wcf:out escapeFormat="js" value="${clickToEditURL}"/>');">
		<fmt:message key="Click2Edit_Edit" bundle="${previewText}" />
</a>

Edit links for marketing content

The link is contained in the following store preview pop-up window:

\Stores\WebContent\Aurora\Widgets\ESpot\include\ESpotInfoPopupDisplay.jspf

Here is the code snippet for the Edit link:

<c:url var="clickToEditURL" value="/cmc/EditBusinessObject" context="/">
	<c:param name="toolId" value="marketingManagement"/>
	<c:param name="storeId" value="${storeId}"/>
	<c:param name="languageId" value="${langId}"/>
	<c:param name="storeSelection" value="prompt"/>
	<c:param name="searchType" value="FindMarketingContent"/>
	<c:param name="searchOption.searchText" value="${aRecommendedItemDataMap.dataName}"/>
	<c:param name="searchOption.searchUniqueId" value="${aRecommendedItemDataMap.id}"/>
</c:url>
<a id="click2edit_MarketingContent_${aRecommendedItemDataMap.id}" 
      href="javascript:void(0)" title='<fmt:message key="Click2Edit_content" bundle="${previewText}"/>' 
      class="click2edit_button" onclick="window.parent.callManagementCenter('<wcf:out escapeFormat="js" value="${clickToEditURL}"/>');">
	<fmt:message key="Click2Edit_Edit" bundle="${previewText}"/>
</a>

Create and Edit links for search rules

These links are contained in the following store preview pop-up window:

\Stores\WebContent\Aurora\Widgets\ESpot\include\ESpotInfoPopupDisplay.jspf

Here is the code snippet for the Create link:

<c:url var="clickToCreateURL" value="/cmc/CreateBusinessObject" context="/">
	<c:param name="toolId" value="marketingManagement"/>
	<c:param name="storeId" value="${storeId}"/>
	<c:param name="languageId" value="${langId}"/>
	<c:param name="storeSelection" value="prompt"/>
	<c:param name="objectType" value="SearchActivity"/>
	<c:if test="${!empty(originalSearchTerm)}">
		<c:param name="newObjectOption.searchKeyword" value="${originalSearchTerm}"/>
	</c:if>
</c:url>
<div class="create">
	<a id='click2create_SearchActivity' href="javascript:void(0)" 
          title='<fmt:message key="Click2Create_searchrule" bundle="${previewText}"/>' class="click2create_button" 
          onclick="window.parent.callManagementCenter('<wcf:out escapeFormat="js" value="${clickToCreateURL}"/>');">
		<fmt:message key="Click2Edit_Create" bundle="${previewText}"/>
	</a>
</div>

Here is the code snippet for the Edit link:

<c:url var="clickToEditURL" value="/cmc/EditBusinessObject" context="/">
	<c:param name="toolId" value="marketingManagement"/>
	<c:param name="storeId" value="${storeId}"/>
	<c:param name="languageId" value="${langId}"/>
	<c:param name="storeSelection" value="prompt"/>
	<c:param name="searchType" value="FindSearchActivities"/>
	<c:param name="searchOption.searchText" value="${param6}"/>
	<c:param name="searchOption.searchUniqueId" value="${param1}"/>
</c:url>
<div class="edit">
	<a id="click2edit_SearchActivity_${param1}" href="javascript:void(0)" 
          title='<fmt:message key="Click2Edit_searchrule" bundle="${previewText}"/>'  class="click2edit_button" 
           onclick="window.parent.callManagementCenter('<wcf:out escapeFormat="js" value="${clickToEditURL}"/>');">
		<fmt:message key="Click2Edit_Edit" bundle="${previewText}"/>
	</a>
</div>