How to pass the team member name to a sign-up page redirect and display it dynamically? Answered

Post author
Adam Brandenburg

Hello! I would like to display dynamic text based on what page the user needed to login to see. I.e., I am gating all the team member profiles on my site, and would like the h1 of the sign-up page they are redirected to to say something like "Sign-Up to view {Team Member Name}"

How would I accomplish this?

Comments

4 comments

  • Comment author
    A J

    Hey Adam Brandenburg,

    One way of doing this would be to hide the content in the team member page using attributes instead of gating access to the page altogether. And show a custom block on the page for non-logged in user.

    • This section can either have the signup form and you can show the name of the team member in such collection page via the CMS field directly
    • Or this section has the dynamic text you want (powered by the CMS field assuming that the team member page is a collection template page) along with a button which leads to the Signup page that you have setup.
    • Or you can have just the signup button which has the URL parameter with the relevant team member name from the page and customize this memberscript to update the text on the signup page to show the name as per the URL parameter that you set in the signup button link.

    There are just few approaches that you can take to achieve the use-case, feel free to explore what seems best fit for your project requirements.

    0
  • Comment author
    Adam Brandenburg

    Thank you! I’m curious — can I blur the team member page content instead of hiding it altogether and show the sign up modal above it? It might increase conversions to show the content the user wants ever so close.

    0
  • Comment author
    A J

    Yes design wise you can explore and customize it as you want. Here's a free template that you can take inspiration from and here's a signup component with blur background that you can customize for your project and set it up such that it works for your team member page accordingly.

    Hope this helps.

    0
  • Comment author
    Deeky Mvula

    Yes

    0

Please sign in to leave a comment.