Kevin's Widget & Macro Collection
A collection of widgets and macros for Graffiti CMS written by Kevin Harder. It will be updated occasionally with new functionality.
The current version is 1.2 and contains the following features:
- Widgets
- Table of Contents
This widget displays the navigation bar items as an unordered list (UL). It can optionally also display the child categories for any navigation link that is a parent category in a sub-list. - Hierarchical Categories
This widget displays selected categories and subcategories as a nested unordered list (UL). You can select which parent categories and subcategories to display.
- Table of Contents
- Macros
- AtomicMacros.IncludeFile
This macro writes out the content of a text file. It should be called in the format $AtomicMacros.IncludeFile("file-path") where file-path is the path to the file you want to read. It can be relative to your web site (ex: "/files/myfile.txt" or "~/includes/header.html"), or an absolute path to the file on the web server (ex: "C:\MyFiles\test.htm"). - AtomicMacros.IncludeThemeFile
This macro does the same thing as IncludeFile, but the file path is given relative to the current theme folder. So for example calling $AtomicMacros.IncludeThemeFile("header.html") would write out the contents of the header.html file located in the site's current theme folder (for example: /files/themes/gulfcoasting/header.html if using the Gulf Coasting theme).
- AtomicMacros.IncludeFile
Download Links:
- Kevin Harder's Widget Collection (ready to use binary version)
- Source Code for Kevin Harder's Widget Collection (contains source code only - must compile manually)
