Search code examples
emailtokendotnetnukedotnetnuke-7

Dynamically add DotNetNuke tokens to url


Is it possible to add a user's email at the end of a external link in a DotNetNuke site? Basically, I want it to appear like this:

http://www.website.com/[email protected]

With [email protected] to change to the user's email.

I tried using the DNN token, [User:Email], within the Page Management settings, but the token doesn't populate. Any ideas on how to make this work?


Solution

  • Probably the easiest way to to this would be via DNNSharp's MyTokens module.

    Another approach would be to use token replacement in an HTML module, storing the user's email address in a div that is not displayed. Then, use jQuery to grab it and add it to the link.