Nested S-Tags?

Options
I'm trying to display how much money the previous years event raised in a reusable.


so, basically [[S42:x:donations]] where x is [[S42:0:prev-fr-id]]


is that possible?


i tried [[S42:[[S42:0:prev-fr-id]]:donations]] but it didn't work.
Tagged:

Comments

  • When you nest multiple S-tag, you have to use E instead of S for the outer ones.


    Thus try this 

    Replace the XXXX with a hardcoded FRID instead of 0 (explanation below)
    [[E42:[[S42:XXXX:prev-fr-id]]:donations]]


    Otherwise -- if you want the dynamic FRID -- I think the 0 used to work, or until there's a glitch, which probably still lingers, but you could alternative just grab the FRID from the URL parameter (much stable solution especially when you are using it in conjunction with a Teamraiser based pages; or else you could always feed the URL parameter with the FRID value accordingly and still use the same page as reusable) thus it will be something like this

    [[E42:[[E42:[[S334:fr_id]]:prev-fr-id]]:donations]]​


    regards,

    Daniel

     

    Matt E:

    I'm trying to display how much money the previous years event raised in a reusable.


    so, basically [[S42:x:donations]] where x is [[S42:0:prev-fr-id]]


    is that possible?


    i tried [[S42:[[S42:0:prev-fr-id]]:donations]] but it didn't work.

     

  • There are a few places, such as UserLogin, where you can't get the FR_ID at all. It's not in the URL and you aren't actually in the teamraiser. I kept finding obscure spots where things would break. So now we just set the id in a session variable using [[U0]] in the wrapper and stationary, and then use S80 to read it into our S-Tags.


    [[U0:myid=1680]]


    [[E42:[[E42:[[S80:myid]]:prev-fr-id]]:donations]]​

     

Categories