Difference between revisions of "UTA Calendar Template"

From SmartWiki
Jump to: navigation, search
m
Line 4: Line 4:
 
You can use the following syntax on the "Calendar Fields" section of the UTA Application Configuration page:
 
You can use the following syntax on the "Calendar Fields" section of the UTA Application Configuration page:
  
&lt;!--@sslogic('@type@'='Site Visits')-->@#12345#@ <br>
+
::''&lt;!--@sslogic('@type@'='Site Visits')-->@#12345#@''
&lt;!--@end-->
+
::''&lt;!--@end-->''
 +
This will only disply the '''Site Location''' field (field ID 12345) for '''Site Visits''' Level 2 type activities on the Level 1 calendar.
 +
<br>
  
This will only disply the '''Site Location''' field (field ID 12345) for '''Site Visits''' Level 2 type activities on the Level 1 calendar.
+
With multiple conditions:
<br><br>
+
 
 +
::''&lt;!--@sslogic('@type@'='Site Visits' and '@status@'!='Closed')-->@#12345#@''
 +
::''&lt;!--@end-->''
 +
Will do the same as above, but only if the '''Status''' of the Level 2 item is not ''Closed''.
 +
 
 +
 
 +
<br>
 
See the [[Web Page View Field|web page view]] page for the full list of variables supported.
 
See the [[Web Page View Field|web page view]] page for the full list of variables supported.
  
 
[[Category:Enhancements]][[Category:Universal Tracking Application]][[Category:Calendars]]
 
[[Category:Enhancements]][[Category:Universal Tracking Application]][[Category:Calendars]]

Revision as of 13:14, 21 April 2009

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 disply 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 '@status@'!='Closed')-->@#12345#@
<!--@end-->

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



See the web page view page for the full list of variables supported.