Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacement tokens #349

Closed
Tychodewaard opened this issue Nov 25, 2020 · 8 comments
Closed

Replacement tokens #349

Tychodewaard opened this issue Nov 25, 2020 · 8 comments
Assignees

Comments

@Tychodewaard
Copy link

Is token replacement broken? I checked replcae tokens and I tested with [Browser:Browser] and [User:DisplayName] but that does not seem to work.

@Tychodewaard Tychodewaard changed the title Support DNNSharp tokens Replacement tokens Nov 25, 2020
@joshgk00
Copy link

I've also experienced this not working as well.

@pankajmandeeps
Copy link
Contributor

I am unable to duplicate the issue make sure Page Setting>Basic>Personalization>Replace Tokens setting is set to yes

@Tychodewaard
Copy link
Author

I tested with a fresh install and can confirm that it works as expected. The DNN Sharp tokens (which should be the same behaviour according to Bogdan) do not work.

@meetmandeep
Copy link
Collaborator

We're just calling the DNN Platform Token Replace:

new TokenReplace().ReplaceEnvironmentTokens(page.Content)

Feel free to bring this to DNN Sharp attention and let us know if it needs to be any different.

@bogdan-litescu
Copy link

Can you check web.config that the TokenProvider is set to My Tokens?
There should be a line such as

@bogdan-litescu
Copy link

Further info about the new Token Provider is at dnnsoftware/Dnn.Platform#3820

@bogdan-litescu
Copy link

Actually, I just checked with our development team, and the MyTokens provider will be available in the next Plant an App 1.11 release. We're aiming to release it this year.

@meetmandeep
Copy link
Collaborator

@Tychodewaard I'm closing this issue as there's nothing actionable on our end. As @bogdan-litescu mentioned, you need to update your web.config to swap out the default token provider with MyTokens provider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants