> Thanks for the reply, Sean.  I'm sure that the second one can be 
> modeled directly on your (excelent) LinkRoll extension tutorial.  The 
> concept is quite similar.  As for the first one, umm, I need to look 
> up on filters again - since I've spent some time with extensions, 
> admittedly an extension seems easier!  But, I shall take a look on 
> using a filter instead..

John wrote the tutorial ;).  Actually you can package the first one in 
an extension too!  There are two primary components to a filter:

1) The filter class itself
2) The filter reference

The first you can model after the markdown or textile filters that are 
included in the normal distribution.  If you want to see another 
example, check out the Sass filter extension.

The filter reference is a fragment of HTML that will be displayed in the 
admin interface.  You can either use the "description" (for shorter, 
inline descriptions) or "description_file" (for text stored in a file) 
class methods to specify the reference.  Check out the included .html 
files in the filter extensions for examples.

Sean
_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to