S-Tag Conditionals to detect with TR page you are on

Options
I'm working on a Teamraiser page wrapper, and had to tell which page is currently being viewed. Each page has a unique parameter we can find using the S8 tag. Here's all of them.



[[?[[S8]]::pg=entry::T::F]]

Greeting - Displays general information and provides default links for registering, locating, and supporting participants and teams.



[[?[[S8]]::pg=pfind::T::F]]

Find a Participant - Provides search fields to locate participants and teams.



[[?[[S8]]::pg=tfind::T::F]]

Team Selection - Provides default links for creating a new team and registering without a team as well as search fields for locating an existing team to join.



[[?[[S8]]::pg=tpass::T::F]]

Team Password - Provides fields to set a team password that others must use to join the team (if this feature is enabled).



[[?[[S8]]::pg=ptype::T::F]]

Participation Options - Provides Participant Type options for selection and the Additional Gift, Fundraising Goal, and Discount Code fields (if these features are enabled).



[[?[[S8]]::pg=utype::T::F]]

Returning Participant Login - Provides the New User and Returning User options for selection, the user login fields for returning users, and the forgotten login request fields.



[[?[[S8]]::pg=reg::T::F]]

Registration Information - Provides the contact information fields and opt-in checkboxes, the User Name and Password entry fields, and any additional questions for registrant responses.



[[?[[S8]]::pg=reganother::T::F]]

Secondary Registration Information - Provides name, email address, and additional information fields for registering another person in the same registration transaction.



[[?[[S8]]::pg=waiver::T::F]]

Waiver - Provides the content of the participation waiver and the agreement checkbox.



[[?[[S8]]::pg=regsummary::T::F]]

Registration Summary - Displays the contact information, participation type selected, and the monetary amounts paid for the registration fee, additional gift, and each Upsell.



[[?[[S8]]::pg=paymentForm::T::F]]

Billing Information - Provides billing name and address fields as well as payment method fields.



[[?[[S8]]::pg=confirm::T::F]]

Confirmation - Displays the billing information entered by the participant and provides the button to process the transaction.



[[?[[S8]]::pg=thanks::T::F]]

Thank You - Displays transaction and registration information details and provides the link to the Participant Center Home Page.



[[?[[S8]]::dashboard.html::T::F]]

Home Page - Provides the tools for working with the Personal Page, Address Book, Email Messages, and Follow-up tasks as well as working with fund elements.



[[?[[S8]]::pg=personal::T::F]]

Default Personal Page - Provides the donation link/button, content editor elements, image area, and status indicators to display on the page created for each participant.



[[?[[S8]]::pg=complist::T::F]]

Company List Page - Displays the list of local companies associated with teams or gifts, the Top 10 Companies status indicator, and overall campaign progress thermometer.



[[?[[S8]]::pg=company::T::F]]

Default Company Page - Provides the content elements and status indicators to display information on the page created for each company associated with teams or gifts.



[[?[[S8]]::pg=teamlist::T::F]]

Team List Page - Displays the list of teams formed for the TeamRaiser and provides a content area for messages and the default Top 10 Teams Fundraising Honor Roll status indicator.



[[?[[S8]]::pg=team::T::F]]

Default Team Page - Provides the content elements for describing the team, the team status indicators (including the Donor Wall), and link to support the team on the page created for each team formed.



[[?[[S8]]::pg=checkin::T::F]]

Online Check-In - This is the Check-In page in the Participant Center.



[[?[[S8]]::pg=topparticipantlist::T::F]]

Top Participants List Page - Displays the top 100 participants who have raised the most money in a list that shows their names, team, and amount of money raised.



[[?[[S8]]::pg=paymentForm::T::F]]

Payment Page - Presents a payment form for TeamRaiser registration payments.



[[S8]]::site/TRR::T::]]

Validation Error



[[S8]]::site/TR::T::]]

Other Pages



[[?[[S8]]::sid=1234::T::F]]

Custom Page with an ID of 1234



// Standard Non Teamraiser Pages //



[[S8]]::ConsProfileUser::T::]]

[[S8]]::ConsInterestsUser::T::]]

[[S8]]::ServiceCenter::T::]]



[[S8]]::Donation2::T::]]

[[S8]]::TellAFriend::T::]]

[[S8]]::UserLogin::T::]]






 
Tagged:

Comments

  • Corrections (The X keeps these conditionals from matching other named pages):


    [[?[[S8]]X::site/TRRX::T::F]]

    Validation Error



    [[?[[S8]]X::site/TRX::T::F]]

    Other Pages



    Copy mistake on this one.



    [[?[[S8]]::pg=bill::T::F]]

    Billing Information - Provides billing name and address fields as well as payment method fields.




    Here's a way to match each page on the donation form (when that form's ID is 12345):



    [[?[[S8]]::Donation2::

        [[?x[[S334:12345.donation]]x::xx::T::F]]   <-- Same page as form1

        [[?x[[S334:12345.donation]]x::form1::T::F]]

        [[?x[[S334:12345.donation]]x::form2::T::F]]

        [[?x[[S334:12345.donation]]x::form3::T::F]]

    ]]

  • Hi Brian -



    Thanks for the list!

    I would recommend not to nest these as conditionals typically cap out around 28 deep.







    Happy coding,

    Sara
  • Done that. You know if you go too deep, because the page just stops loading.



    But if you are going to run most or all of these on a page, that might take a noticible amount of time (I haven't tested it though.) Putting them in a nested conditional with the most visited pages first might help.

Categories