The Custom Template Tag collection includes the following tags:
IsOnline
Parameters:UserName = string
Simply pass a username to check if that user is online (uses the standard DNN UsersOnline functionality).
If the user IsOnline then whatever content you have specified is displayed.
e.g. Display if the owner (person who added record) of a profile IsOnline.
IsNotOnline
Parameters:UserName=string
Simply pass a username to check if that user is Not online (uses the standard DNN UsersOnline functionality).
If the user IsNotOnline then whatever content you have specified is displayed.
e.g. Display if the owner (person who added record) of a profile IsNotOnline.
This functionallity would be very useful in a forum or private messaging application built with XMod.
IfInRole
Parameters: UserName = string, Roles = comma delimited list of DNN role names
If the specified user is in one of the specified roles then your content is displayed.
e.g. Check if a user is a member of a particular role(s)
IfNotInRoles
Parameters: UserName = string, Roles = comma delimited list of DNN role names
If the specified user is Not in any of the specified roles then your content is displayed.
e.g. Check if a user is not a member of a particular role(s)
This functionallity would be very useful if you would like to show a specific subset of template content only to a certain security role group.
TotalComments
Parameters: commentslabel = string, myXMODID = integer
TotalComments will display the total comments count in your list or detail views.
Extremely useful to show the number of comments on a list view template.
TotalRatings New in v2.5.1
Parameters: Ratingslabel = string – default = “{0} vote(s)”
myXMODID = integer,
cssClass = string – css style
TotalRatings will display the total ratings count in your list or detail views.
This adds greater credibility to your ratings.
ViewCount New in v2.5
Parameters: label = string - uses string.format default = Views {0} , image
myXMODID = integer,
update = boolean - specify if view count is incremented or not. default = false,
cssClass = string - apply a css style.
Now just like well known Articles and blog modules you can display how many times your XMod records have been viewed.
Buck's Review:
When working with XMod applications we were constantly searching for small enhancements that inexpensively helped us create top notch applications.
With Custom Template Tags we can know offer our web clients some of the features that were not included in XMod out of the box.
These tools are especially useful for DNN Professor Business Directory users who are selling listing subscriptions. Now your client can evaluate their subscription renewal by comparing the listing view count and number of ratings and comments.
Here is a live demo of custom tags in action.
I highly recommend the product to anyone using XMod.