Hi, I want to create a React SPA and I will need to get DNN tokens like Portal:ID or User:ID. How you can make available [Portal:ID] and [User:ID] to SPA?
Hi, this is a step. I can see them in HTML module. My need is that they are available in the React code I have an axios connection which shouls get them. I had a test const portalTest = "[Portal:PortalID]"; console.log('test portalTest', portalTest)
and looks like I cannot use the DNN tokens in the javascript code
These Forums are dedicated to the discussion of DNN Platform.
For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:
Awesome! Simply post in the forums using the link below and we'll get you started.