App
Use DNN APIs to get DNN Data
DNN also provides a lot of data about users, pages etc. In this example, we'll list all the pages (tabs) in DNN and mark the one we're on. Please note that the DNN API isn't very consistent - so sometimes things use ID
, sometimes Id
, so best really verify the exact names as spelled in the API.
DNN also provides a lot of data about users, pages etc. In this example, we'll list all the pages (tabs) in DNN and mark the one we're on. Please note that the DNN API isn't very consistent - so sometimes things use ID
, sometimes Id
, so best really verify the exact names as spelled in the API.
⬇️ Result | Source ➡️
⚠️ Code Disabled in Oqtane 💧
This code only works in DNN, so the tutorial has special conditional statements like#if NETCOREAPP
which disable the code in Oqtane.
See See how to use #if