DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Page title as theme object

Sort:
You are not authorized to post a reply.





New Around Here





    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!






    Veteran Member





      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 %>






      Veteran Member





        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 Tobisch
        DNN★MVP

        dnnWerk Austria
        DNN Connect





        New Around Here





          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!





          Veteran Member





            You might want to take a look and nvQuickTheme (https://github.com/nvisionative/nvQuickTheme).
            Joe Craig
            DNN MVP
            Patapsco Research Group





            New Around Here





              Thank you very much for your input Joe. This looks very useful for someone in my situation. Might be just what I was searching for without knowing I needed it!

              Cheers!








                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)

                 

                 






                New Around Here





                  Ok, I just noticed that you are one of the contributors to the docs. Thank you so much for your time and effort!
                  You are not authorized to post a reply.

                  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:

                  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
                  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                  5. No Flaming or Trolling.
                  6. No Profanity, Racism, or Prejudice.
                  7. Site Moderators have the final word on approving / removing a thread or post or comment.
                  8. English language posting only, please.

                  Would you like to help us?

                  Awesome! Simply post in the forums using the link below and we'll get you started.

                  Get Involved