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 (http://lists.radiantcms.org/pipermail/radiant/2007-May/004915.html).

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
   "#{myfilter}"
 end

On the other hand, I do not (yet) know how a tag could know which part includes it. :-S
Anyone?

Cheers,
Mohit.
1/29/2009 | 4:46 PM.

_______________________________________________
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to