ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Access tag params in method called by the Channel Module Extension Hooks

April 27, 2011 2:37am

Subscribe [2]
  • #1 / Apr 27, 2011 2:37am

    JohanD

    59 posts

    Hi all,

    I’m working on an extension to ease inline editing and want to use the channel_entries_query_result hook (or channel_entries_row) to modify certain columns. Eg add a span with various classes/rel info that can then be accessed using JS…

    I’d like to access the parameters of the channel:entries tag, in the method called by channel_entries_query_result (or channel_entries_row).

    I’ve tried using the Channel object ($this) but I can’t differentiate between multiple channel:entries pairs.

    Is there an easy way to access them?

    Thanks for any help…

    Cheers!


    PS Maybe a $tagparameters parameter could be added to the params of most channel module extension Hooks… Feature request?

  • #2 / Apr 27, 2011 9:38am

    the3mus1can

    426 posts

    Have you tried just using $channel->EE->TMPL->tagparams in the extension? $channel being the first param passed to your extension method.  This should give you access to all tag params for that particular channel entries tag.

  • #3 / Apr 27, 2011 10:58pm

    JohanD

    59 posts

    Great, I guess I got lost in all the $channel->EE options. Thanks the3mus1can!

    Post can be closed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases