Hello again DNN Community!
I have a custom theme (more on this below) with layouts that use code blocks referencing the DNN API. I'd like to centralize these code blocks since I apply them across all of the layouts.
Code examples:
And
<% If Not DotNetNuke.Security.PortalSecurity.IsInRole("Administrators") Then %>
Instead of applying this logic/code in each layout, I'd like to stick them in a "master" file that can be referenced in each layout. This makes potential changes in the future much easier to implement since I'll just need to update one file instead of each individual layout. I'd also be open to applying something like this Portal-wide, but I'm not quite sure how to implement that either.
Additional backstory: The custom theme I'm using started from a simple copy of the default Xcillion skin/theme. I've often ran into 500 errors when trying to implement solutions for my predicament. I'm concerned that maybe it stems from me creating my current theme from a copy, instead of building it out as a DNN Theme in Visual Studio from scratch.
Appreciate your expertise and help!
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.