Sean Cribbs wrote: >> 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 ;).
Ooopss... my apologies! > 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. > I certainly don't know enough about filters but at least for Textile and Markdown, it appears that you can only pick one or the other. I love Textile and certainly don't want to repeat the work for rendering everything else. I only need something that DRYs up the typing of URLs when writing up the text. (At first, I thought you meant something like an after or before filter and that made some sense in my head). I think it may be easiest for me to start by looking at the Sass filter and/ or just sticking with an extension for now (now = after I write it). > 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 Thanks again, Sean! Cheers, Mohit. 8/14/2007 | 2:00 AM. _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
