The purpose of the Global HTML manager is to allow the integration of third-party scripts, CSS or HTML integrations easily without altering code or programming it in the theme. This allows for cross-theme output in a manageable manager.
The following are the sections where you can intercept and put data for output:
- Global Layout
- Blog Entries
You can add custom markup for any of the interception points show in this section, from after any content, before any comment, after any blog entry, etc.
Implementing these events are super easy. All you have to do is announce the event using the ContentBox helper class's method:
event() anywhere you want the content to output. Here is an example:
#cb.event( "cbui_beforeHeadEnd" )#
The many events you can announce are:
"cbui_beforeHeadEnd", "cbui_afterBodyStart", "cbui_beforeBodyEnd", "cbui_footer", "cbui_beforeContent", "cbui_afterContent", "cbui_beforeSideBar", "cbui_afterSideBar", "cbui_preEntryDisplay", "cbui_postEntryDisplay", "cbui_preIndexDisplay", "cbui_postIndexDisplay", "cbui_preCommentForm", "cbui_postCommentForm", "cbui_prePageDisplay", "cbui_postPageDisplay", "cbui_preArchivesDisplay", "cbui_postArchivesDisplay"