Team captain's cons_id on team page

Options

Hello - 

Is there a way to determine the team captain’s cons_id while on the team page?  Ideally, it would be via an STag (S43-maybe?), and independent of the viewer’s logged-in status.  The end goal is to use registration questions answered by a team’s captain to add or subtract team page content via conditionals.

Thanks,

Dan

Tagged:

Comments

  • Hi Dan,

     

    You might want to try this approach, using the getTeamCaptain Convio REST based API

     

    http://open.convio.com/api/#teamraiser_api.getTeamCaptains_method.html 

     

    That will give you the team captain cons id, and the  you have the option within the API to give you back a JSON format response in which you can then use Javascript (or its library such as jQuery) to parse it back anywhere you want including within the TeamRaiser team page.

     

    And especially if you do that within the TeamRaiser page you can grab the fr_id dynamically from the URL parameter (those TR pages come with the fr_id parameter) and feed it to the API call

     

    regards,

     

    Daniel

  • Kent Gilliam
    Kent Gilliam Blackbaud Employee
    Ancient Membership 2500 Comments 100 Likes Name Dropper

    You can actually do this with a simple E48 tag that evaluates the URL syntax to pull out the info using S334. 

     

    You can control the content displayed based on group membership with:

     

    [[?[[E48:[[S334:fr_id]]-[[S334:smileytongue:x]]:if-in-group:{GROUP ID}]]::TRUE::{tell it what to show here}::{if not in group what to show}]]

     

     

    Or you can render content dynamically by if they are a team captain or not using this syntax:



    [[?[[E48:[[S334:fr_id]]-[[S334:smileytongue:x]]:if-is-captain]]::TRUE::{tell it what to show here}::{if not in group what to show}]]

     

    I think this is what you're looking for.

     

    Kent

  • Kent Gilliam
    Kent Gilliam Blackbaud Employee
    Ancient Membership 2500 Comments 100 Likes Name Dropper
    Kent Gilliam:

    You can actually do this with a simple E48 tag that evaluates the URL syntax to pull out the info using S334. 

     

    You can control the content displayed based on group membership with:

     

    [[?[[E48:[[S334:fr_id]]-[[S334:smileytongue:x]]:if-in-group:{GROUP ID}]]::TRUE::{tell it what to show here}::{if not in group what to show}]]

     

     

    Or you can render content dynamically by if they are a team captain or not using this syntax:



    [[?[[E48:[[S334:fr_id]]-[[S334:smileytongue:x]]:if-is-captain]]::TRUE::{tell it what to show here}::{if not in group what to show}]]

     

    I think this is what you're looking for.

     

    Kent

    Oh wait... Let me check something.

  • Kent Gilliam
    Kent Gilliam Blackbaud Employee
    Ancient Membership 2500 Comments 100 Likes Name Dropper
    Kent Gilliam:

    Oh wait... Let me check something.

    Ok... Scratch that up there. You can only use that on a personal page. 

     

    I didn't read that first about the "independent of logged in status" part. Without having them logged in you will have to go the API call route. Since the cons_id isn't in the URL of the team page URL it can't be done simply and since they're not logged in you can't use groups. 

     

    Sorry for the confusion. It's almost the weekend and my brain already checked out. lol

     

    Kent

  • Kent Gilliam:

    Ok... Scratch that up there. You can only use that on a personal page. 

     

    I didn't read that first about the "independent of logged in status" part. Without having them logged in you will have to go the API call route. Since the cons_id isn't in the URL of the team page URL it can't be done simply and since they're not logged in you can't use groups. 

     

    Sorry for the confusion. It's almost the weekend and my brain already checked out. lol

     

    Kent

    Thanks for the follow up Kent. 

    I think it would be a terrific addition to the S43 tag if you could access a team captain's cons_id with it.   This would allow you to easily do all sorts of things on the public facing team and personal pages based on the captain's registration question answers - without having to resort to JS or APIs.

    DK




Categories