Giter VIP home page Giter VIP logo

aem-adobecampaign-forms-sample's Introduction

Sample Adobe Campaign form page template for AEM

This content package contains a sample AEM template and page component to create an Adobe Campaign profile / subscription form page supporting both Classic and Touch UI authoring.

Target system

This content package is to be installed on AEM 6.1 with cq-6.1.0-featurepack-6576.

Instructions

  1. Clone this git repository, then build and install the content package using mvn clean install content-package:install
  2. Enable the sample template for your demo site by adding /apps/ac-forms/templates/.* to the list of allowed templates, i.e. add the value to the cq:allowedTemplates property on the jcr:content node of your site root
  3. Create a new page using the Adobe Campaign Form Page Template template
  4. Make sure to select the correct form action: Save Profile, Subscribe to services or Unsubscribe from services
  5. Make sure the acMapping property on the page's jcr:content node is set to mapRecipient or profile when using Adobe Campaign 6.1.x or Adobe Campaign Standard, respectively

Documentation

The sample page component inherits from mcm/campaign/components/profile, which is needed to make the Adobe Campaign integration work on those pages.

For Touch UI, ContextHub is included in order to enable the personalization preview:

<sling:include path="contexthub" resourceType="granite/contexthub/components/contexthub"/>

The Adobe Campaign ContextHub stores check for the presence of an element with id campaignContextHub in the HTML to determine whether they should be activated or not:

<meta id="campaignContextHub" data-register="true" />

Finally, the dialog includes a template picker component, in order to be able to select and set the Adobe Campaign template. See here for the component definition.

Similarly for Classic UI, ClientContext is included for the personalization preview:

<c:include path="config" resourceType="cq/personalization/components/clientcontext_optimized/config"/>
<cq:include path="clientcontext" resourceType="cq/personalization/components/clientcontext_optimized" />

Additionally, the mcm.campaign.ui.classic is embedded for authoring. The dialog equivalently includes a template picker component, see here for the component definition.

The template defines three properties on the jcr:content node of the page:

acTemplateId
Stores the default Adobe Campaign template id. The property name matches the one defined in the template picker in the Touch and Classic UI dialogs.

acTemplateLabel
Stores the label associated with the default Adobe Campaign template id (relevant for Touch UI only). The property name matches the one defined in the template picker in the Touch UI dialog.

acMapping
Specifies the value of the mapping parameter that is sent along to Adobe Campaign. This needs to be set to mapRecipient or profile for Adobe Campaign 6.1.x or Adobe Camapaign Standard, respectively.

aem-adobecampaign-forms-sample's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.