Adding e-Marketing Spot title support to existing e-Marketing Spot JSPs
Before you can display marketing content as title
or default title content in an e-Marketing Spot, you must add support
for displaying title content in the e-Marketing Spot JSP file.
Procedure
- In your file management program, navigate to the directory
that contains the JSP file for your e-Marketing Spot.
- WC_eardir\Stores.war\store_dir\Widgets\ESpot\
For example, if you want to add support to the ContentRecommendation_UI.jspf file, you can locate this file in the following directory: WC_eardir\Stores.war\store_dir\Widgets\ESpot\ContentRecommendation\
- Workspace_dir\Stores\WebContent\store_dir\
For example, if you want to add support to the ContentRecommendation_UI.jspf file, you can locate this file in the following directory: Workspace_dir\Stores\WebContent\store_dir\ContentRecommendation\
- WC_eardir\Stores.war\store_dir\Widgets\ESpot\
- Locate the JSP file for the e-Marketing Spot that you want to update to support title content. Open the file for editing.
- Navigate to the samples directory that contains the sample WebServiceeMarketingSpotDisplay.jsp file.
This file contains sample code that supports the display of marketing
content as title or default title content. Open this file to view
its contents.This file can be found in the following directory:
- WC_installdir\components\foundation\samples\Snippets\web\Marketing\Campaigns\
- WCDE_installdir\components\foundation\samples\Snippets\web\Marketing\Campaigns\
- In the WebServiceeMarketingSpotDisplay.jsp file,
locate the code that begins with the following lines of code:
And ends with the following lines of code:<%-- BEGIN e-Marketing Spot Title --%>
<%-- END e-Marketing Spot Title --%>
- Copy the code between the preceding lines of code and paste
this code in the corresponding location in your e-Marketing Spot JSP
file. Paste this code in a location within your file that ensures
that your title content displays before the remaining content in your
e-Marketing Spot. This code adds the support for title and default
title content. Modify the code to match the requirements for your
e-Marketing Spot.For example, to add support to the ContentRecommendation_UI.jspf file, you can add the code at the beginning of the file before the following code:
<div id="${espotName}_${uniqueID}" class="widget_height">
- Save and close your file.