App
Inspect a Content-Block
In this example, we'll see what content-blocks are in the system, and where they are in use.
You are on portal 13 - this sample has hard-wired IDs for portal 59 (our dev-environment) and 24 (the tutorials on 2sxc.org). If one of these is detected, it will show the stats for a portal we know on that system, otherwise from the current app - which won't show much, since this tutorial app doesn't have many content-blocks.
⚠️ 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
Warning: This Sample uses Internal APIs
This sample uses some internal APIs, so if you use this, it may require some adjustments in future.