Using S-Tag to create a dynamic nav menu

Options
I'm a bit new to S-Tags, so forgive me if this is totally obvious. In any case, we use reusable pages to create a nav menu for Teamraiser wrappers. Currently, I'm copying over a previous reusable, re-naming it for the event I'm working on, then re-linking the nav with the proper TR ID. The links are basic -- just 'Home' and 'Donate'. I'm wondering if there is an S-Tag I can use that will pull in the current TR ID so that I don't need to create a new re-usable for each one. 


I tried replacing this: TR/Events/ResponsiveTR?fr_id=2940&pg=entry

with this:TR/Events/ResponsiveTR?[[S42:fr_id ]]&pg=entry 


But no luck. Am I on the right track? Is this doable?


Thanks!
Tagged:

Comments

  • I've also tried the S80 tag to no avail: TR/Events/ResponsiveTR?[[S80:trID]]&pg=entry
  • Hey Kate... make sure you're only replacing the actual ID number w/ the tag... not the full "fr_id=2940" part... just the "2940" part. - Jon
  • Kate Foote:

    I tried replacing this: TR/Events/ResponsiveTR?fr_id=2940&pg=entry

    with this:TR/Events/ResponsiveTR?[[S42:fr_id ]]&pg=entry



    You want TR/Events/ResponsiveTR?fr_id=[[S42:0:fr-id]]&pg=entry


    Keep in mind that your system might not know the right fr-id, so it's often a good idea to set the ID somwhere as a session variable and then reuse it with S80. For example, you could add [[U0:myFRID=[[S42:0:fr-id]]]] to your page wrapper, and then your url becomes TR/Events/ResponsiveTR?fr_id=[[S80:myFRID]]&pg=entry


    I can't find the thread at the moment, but the advanced advanced users tend to have a more sophisiticated way to set U0 (so that it catches tr-id in several different contexts and works around bugs with S42:0), but this should get you started.

Categories