Macros included in the Web Toolkit
The Web Toolkit contains several macros, some of them having an underlying SXML macro, while others are build around just an item of contenttype Smartlet (containing a Smartlet Macro) and a number of translations.
All the Web Toolkit macros (at least the example/implementation set included in the setup) have in common that there's a single item of contenttype Smartlet which acts as entry point. You only need to add a call to this item (using translation syntax, since Smartlet inherits from the Translation contenttype) in any other item to include a particular Web Toolkit macro.
The table below gives an overview of the Web Toolkit macros, the related Smartlet and their SXML macro counterparts (when applicable).
Web Toolkit macro | Smartlet | SXML macro |
---|---|---|
Poll | sml_Poll() | Poll Macro |
Event Calendar | sml_EventCalendar() | Calendar Macro |
Tags | sml_Tags() | Tags Macro |
Rating | sml_Rating() | N/A |
RSS Reader | sml_FeedReader() | FeedReader Macro |
Item Comments | sml_ItemComments() | ItemComments Macro |
Forum | sml_Forum() | N/A |
Weblog | sml_Weblog() | N/A |
The Web Toolkit macros all depend on the Smartsite Client Framework (Scf) as well.