Difference between revisions of "UTA Calendar Template"

From SmartWiki
Jump to: navigation, search
Line 6: Line 6:
 
::''<!--@sslogic('@type@'='Site Visits')-->@#12345#@''
 
::''<!--@sslogic('@type@'='Site Visits')-->@#12345#@''
 
::''<!--@end-->''
 
::''<!--@end-->''
This will only disply the '''Site Location''' field (field ID 12345) for '''Site Visits''' Level 2 type activities on the Level 1 calendar.
+
This will only display the '''Site Location''' field (field ID 12345) for '''Site Visits''' Level 2 type activities on the Level 1 calendar.
  
  

Revision as of 14:35, 27 April 2011

This template now supports the web page view variables: Calling and ssLogic.

For Example: If you have a Level 2 Type called Site Visits, and a custom field on that Level 2 Type called Site Location with a field ID of 12345.
You can use the following syntax on the "Calendar Fields" section of the UTA Application Configuration page:

<!--@sslogic('@type@'='Site Visits')-->@#12345#@
<!--@end-->

This will only display the Site Location field (field ID 12345) for Site Visits Level 2 type activities on the Level 1 calendar.


With multiple conditions:

<!--@sslogic('@type@'='Site Visits' and '@statusname@'!='Closed')-->@#12345#@
<!--@end-->

Will do the same as above, but only if the Status of the Level 2 item is not Closed.


Level 1 fields can be included using @parent.fieldname@
See the Web Page View Field Variables page for the full list of variables supported.