Online Help

Help Table of Contents

Adding Constituent360 Data with Luminate CMS Template Language

(Website Administrator only)

[Related Topics]

Adding Constituent360 data to your site enables a very sophisticated level of customization.  After a constituent logs in, the site can display user and interest data or content tailored to the constituent's center or group.  For example, after a user logs in, the site can display the Northern California affiliate content for a constituent who is a member of that affiliate. Another example of customizing content is to check the Constituent360 database for a constituent's donation amount and, depending on the amount, display a request for a donation, or a thank you message.

Note: You can also add constituent record data using the personalization tool or the Luminate Online Content component. The personalization tool cannot be used in wrappers.

Constituent360 data can be added to templates, wrappers and body pages. This topic provides the syntax for adding biographical data, multi-center data, user interest data, and group membership data.

This topic covers the following:

Adding Constituent 360 User Data

[Related Topics]

Display Constituent360 data using any of the fields available in the getUser and listUserFields methods. See the Constituent API for more information on getUser and listUserFields. There are three tags for displaying user information: the t:value tag and the ${} display information from a getUser or listUserField, and the t:if tag performs a conditional test:

  • <t:value id=cons.foo></t:value> or <t:value id="cons.foo"/>
    where foo is any field from the constituent profile(i.e. cons.name or cons.school). The field’s value is displayed. For example, the following syntax displays the constituent’s name:
    <t:value id=cons.first_name></t:value>
  • ${cons.foo}
    where foo is a field from the constituent profile (i.e. ${cons.user_name}) and displays the value.
  • <t:if test=”cons.foo ==’foo_value’”></t:if>
    tests for the value of a constituent profile field (foo), and displays conditional content based on the value. For example, the following syntax tests if the constituent is from California and will display content appropriate for the state of California.
    <t:if test=”cons.primary_address.state ==’CA’”>Here's some special news for people who live in California</t:if>

[Back to Top]

Adding Multi-Center Data

[Related Topics]

Constituent360 multi-center data is also now available through CMS template language with the new function getUserCenter. The following examples show different ways to bring multi-center data into your CMS template. 

    • <t:if test=”isCenterMember(‘1001’)”> </t:if>
      tests if a constituent is a member of center 1001.
    • <t:list id=”cons.centers”> </t:list>
      lists all the centers that a constituent belongs to.
    • <t:value id="page.center.label" > </t:value>
      displays the name of the center.

[Back to Top]

Adding User Interest Data

[Related Topics]

Constituent360 interests data is also now available through CMS template language with the new function, isUserInterested, and the tag, cons.interests. The following examples show different ways to add user interest data to your CMS template, wrapper, or body page. 

    • <t:if test="isUserInterested('1002')">We are so glad you are interested in the Nov 2010 elections! </t:if>
      <t:else>Sorry you are not interested in the 2010 elections!</t:else>

      tests whether or not the constituent is interested in the 2010 Election.
    • <t:list id:'cons.interests'>
      <br />Interest ID: <t:value id=’id’></t:value>
      <br />Interest label: <t:value id=’label’></t:value>
      <br />Interest path: <t:valueid=’path’></t:value>
      <br />Interest for_email: <t:value id=’for_email’></t:value>
      <br />Interest for_web: <t:value id=’for_web’></t:value>
      <br />Interest description: <t:value id=’description’></t:value>
      <br /></t:list>

      lists all the interests that the constituent belongs to.

[Back to Top]

Adding Group Membership Data

[Related Topics]

Use the following syntax to test for group membership data:

<t:if test="isGroupMember('Hiking,Biking,Kayaking')">
You are in  the following Luminate Online groups: Hiking, Biking, and Kayaking.
</t:if>
<t:else>Would you like to sign up for a group?</t:else>

tests if the constituent is a member of a group. If not, the message, "You are not in any of those groups," displays.  

[Back to Top]

Related Topics