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.

Module tag nesting

November 23, 2010 11:36am

Subscribe [3]
  • #1 / Nov 23, 2010 11:36am

    Iyadb

    6 posts

    Hi have two modules that I developed and i want to nest their tags like this

    {exp:module1:method}
    {exp:module2:method id="{id_from_module1}"}{data}{/exp:module2:method}
    {/exp:module1:method}

    my problem that {id_from_module1} tag is not been sent to module2:method inside the id parameter! when I check the value of of it in PHP I get a string “{id_from_module1}” any idea how to fix this?

    Thanks

  • #2 / Nov 23, 2010 11:43am

    Stephen Rushing

    40 posts

    Try adding parse=“inward” to the module1 tag. See the part on this page about parse=“inward”.
    http://ellislab.com/expressionengine/user-guide/templates/plugins.html

  • #3 / Nov 23, 2010 12:08pm

    Iyadb

    6 posts

    thank you very much!
    that worked like a charm

    Iyad

  • #4 / Nov 23, 2010 3:16pm

    Ingmar

    29245 posts

    Excellent. Please post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases