I'm a user of really older versions of DNN making a comeback (DNN 4.9). We're working on creating a theme for our new website (DNN 9.4). The theme is pretty simple. A homepage theme and a standard page theme. I want the standard page theme to display the page title like... well as a page title. In older versions of DNN, there used to be a theme object (skinobject) to do just that. It looks like it's been taken out of the theme objects list (https://www.dnndocs.com/c...-objects/index.html) I see that I could get it via the breadcrumb theme object or through the DDR Menu, but I'm wondering if there is a basic thing I'm missing here to accomplish this simple task. Thank you!
Welcome back :-)
I don't remember a skin object that did that TBH, but it's quite easy to do using the DNN framework attributes.
I created a Theme with some examples: https://demo.40fingers.ne...utes-demo-skin/Pages
So: <%=PortalSettings.ActiveTab.TabName %>
I found this in a skin I use (it is displaying the page title, instead of the name):
<%= Convert.ToString(PortalSettings.ActiveTab.Title)%>
Hope that helps...
Happy DNNing! Michael
Michael TobischDNN★MVP
Posted By Bernard Ouellet on 16 Apr 2020 12:07 PM Wow thanks a lot for the quick response Timo and Michael! This worked perfectly! The list on your demo site is quite useful Timo (as are your other demos!). I'm still trying to get a complete picture of the different DNN sources available to correctly create a theme. I've been following the steps explained on www.dnndocs.com, but I did not come upon any mentions of DNN framework attributes (not in the Theme section anyway). Is this insider knowledge or is there official DNN documentation on how to use these in Templates and Containers? Thanks again for your helpful responses!
The documentation is under development TBH. (the docs site is relatively new) I'm trying to add a theme object once in a while. I will add the attributes too, but it might take a while (or maybe I'll just add a reference to my example theme for now)
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.