You are here: Home > Tools > eCampaigning Tool > Documentation > Quick Reference

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:

  1. 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
  2. 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)
  3. 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

Portlet Templates

  • Get Tracking variables from session: python:request['SESSION']?[name-of-session-tracking-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



subject:
  ( 1 subscriber )
Sponsor the eC Tool

Can't help with development? Help pay for someone who can.

Fast checkout through Google   Sponsor:
£
  

Make payments with PayPal - it's fast, free and secure.   Sponsor:
£
  
Sponsorship details >
Go Beyond Tools...

Tools are helpful. But to be great at eCampaigning you need more: strategy, tactics, skills, experience, analysis, etc..

FairSay's Training helps you at whatever level of experience you are.