S120 Display an Object Property
Use the S120 Tag to return the string value of a named property from a named object. The object must be stored using PropertySTagComponent.setObject().
See S120 Display Application Objects for the most common S120 object property tags.
Looking for TeamRaiser Autresponder S120 options? See S-120 TeamRaiser Autoresponders.
Note: Certain [[S120]] tags only function within certain Luminate Online modules and therefore may not transfer across all modules. The definitive list of what [[S120]] properties are available can only be found by entering [[S120:help]] wherever you want to use it. Then take whatever action is necessary to get to the page or autoresponder that you have entered the S120:help tag on. That will give the list of what values are actually available where you are attempting to use the tag.
Application
Platform
Can You Add This S-Tag in the Luminate OnlineContent Editor?
No, add the S-Tag code to the HTML using the Plain Text Editor.
Can You Add This S-Tag in the Luminate CMSContent Editor?
No, add the S-Tag code to the HTML using the Plain Text Editor.
Format
-
Standard
[[S120:objectName:propertyName[:propertyParameter...]]]
-
XML
<convio:session name="120" param=" objectName:propertyName[:propertyParameter...]" />
Parameters
A property name must correspond to a public accessor method named getProperty or isProperty. For example, in order to get the value of a “foo” property, there must be a public method with one of the following signatures:
-
public type getFoo(params)
-
public type isFoo(params)
Where the parameters are:
-
empty (for example, public String getFoo())
-
one or more strings
-
a CVSession and a TemplateContext
-
a CVSession and a TemplateContext followed by one or more strings
In the case of the methods that take a CVSession and a TemplateContext, the CVSession and TemplateContext supplied to the call to render() will be passed into the accessor method. The values for any String arguments are specified using "property parameters"; see below. By convention, property names always begin with a lowercase letter. For example, a property returned by the accessor getFooBar() would be named “fooBar”. As a convenience, the full name of the method can also be used to name a property. This is mainly provided so that tags like [[S120:dc:isTribute]] will work.
-
propertyParameter - Value of parameter to property method. Specifies a string value that should be supplied as a String argument value when calling the property method. Multiple property parameters can be specified as required.
-
renderMode - The tag [[S120:rc:renderMode]] will return one of three values: "email", "web", or "printer". (If you are not in the context of a donation, then "rc:renderMode" is returned.) You can use this to customize the autoresponder message depending upon whether it is being rendered in the context of thank you email, the normal web page, or the printer-friendly web page.
Sample Code
- Standard
Dear
[[S120:dc:name]]
[[?xxnullxx::x[[S120:dc:jointDonorName]]x:::: and [[S120:dc:jointDonorName]]]] [[S120:dc:isGiftAmountGreaterThan:$50]]
Returns the string value of the “isGiftAmountGreatherThan” property of the object named by “dc”, supplying “$50” as an argument to the property method.
[[S120:directory:memberAttr:work_phone]]
Displays the work phone of a constituent. Testing to see if the field 'work phone' contains a value can further customize this:
[[?zz::z[[S120:directory:memberAttr:work_phone]]z::::<strong>Work Phone</strong>[[S120:directory:memberAttr:work_phone]]]]
- XML
<convio:session name="120" param=" dc:name"/]>