A blog about .NET, Graffiti CMS, Technology, and Kevin's life

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
    1. 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.
    2. 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.
  • Macros
    1. 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").
    2. 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).

Download Links: