RokCandy Macro Manager

-- Draft version

The RokCandy Macro Manager is a simple yet powerful new extension for Joomla. It allows you to create simple replacement macros that makes the job of content creation much easier.

A macro is a small bit of text that can be used in content. When this macro is found in content, it is replaced with the HTML you have defined for that macro. You can use an unlimited number of variables in the macro, and then use these same variables in the HTML side. For best WYSIWYG results, we recommend BBCODE style macro syntax. This ensures the editor you use will not rewrite or modify your code, and also Joomla will not filter it out with it's extensive content filtering.

A simple and not particularly helpful example is:

[h1]{text}[/h1]=<h1>{text}</h1>

This would match [h1]My Heading[/h1] in your content and replace it with:<h1>My Heading</h1>.

The elements in the curly brackets {} can be any non-spaced string you like and you can have an unlimited number of them, this allows you to create powerful bbcode style macros. For example:

[feature img="{url}" line1="{line1}" line2="{line2}" /]=<div class="featured-block png"><div class="padding"><div class="featured-image"><img src="{url}" class="featured" alt="image" /><div class="featured-desc"><span class="line1">{line1}</span><span class="line2">{line2}</span></div></div></div></div>

This example clearly shows that a simple "feature" macro will be replaced by a fairly complex block of HTML. This allows you to hide this complexity from your editors and reduces the likelihood of errors in markup occurring.

The power of RokCandy is enhanced by it's ability to automatically include any mappings discovered in a template's html/com_rokcandy/default.ini file. These will be automatically incorporated into the library of available macros. All 2009 RocketTheme templates will include the RokCandy macros needed to recreate the sample content and the typography styles included with the template releases.