Mohit Sindhwani wrote:
Philip Hallstrom wrote:
Hi everyone -
Working on an extension and it would be convenient for me if the tag
could determine what if any filter was being applied to it's result.
I didn't see anything in the source (but also haven't mapped it all
the way through). I saw one post on the mailing list from a year ago
asking this, but didn't see any replies
So... is it possible?
Yes, it is. I just wrote this tag to try it out:
tag 'local:myfilter' do |tag|
part = tag.locals.page.parts.find_by_name('body')
myfilter = part.filter_id
On the other hand, I do not (yet) know how a tag could know which part
includes it. :-S
1/29/2009 | 4:46 PM.
Radiant mailing list