Insert HTML fragments or template variables in your document.
In order to use your own snippets you have to add a parameter to your xinha_config:
xinha_config.InsertSnippet2.snippets = "/path/to/your/snippets.xml";
This path should point to a XML file that has the following format:
<snXML>
<categories>
<c n="the name" />
</categories>
<snippets>
<s n="the name" v="optional variable name to be inserted" c="the category">
<p>some text or HTML, please entize HTML tags</p>
</s>
<s n="another">
<![CDATA[
<p>or put HTML in a CDATA section</p>
]]>
</s>
</snipptes>
</snXML>
Inside the plugin's directory, there is a sample XML file and PHP script that shows how to create the XML dynamically.
3 October 2008 Raimund Meyer (xinha@raimundmeyer.de)