If you are an new/amateur developer with Zope/Plone and need some help getting the right syntax for eCampaigning Tool customising, this page is for you!
Common Needs
The code snippets below are likely to be useful in the following cases:
- Identifying how each person has found the action (via the tracking codes) and displaying specific content and/or fields for people who match a particular profile
- Displaying customised content on each step (using HTML/Field Blocks) based on specific conditions being met (e.g. in the session, in for submitted values, in calculated values in getMergeData or other script)
- Evaluating what the values of the fields a person has submitted are (e.g. via getMergeData) and using the results of this evaluation in a portlet (which can't use normal merge data notation)
HTML/Field Block Conditions
- Get Tracking variables from session: session[name-of-variable]? where 'name-of-session-tracking-variable' can be one of: origin_url, onsite_origin_url, entry_url, tracked_source, tracked_medium, tracked_person, tracked_content, tracked_terms or tracked_name

