DotNetNuke Skins and Resources by ThinkofDesign

 

PageTitle: The hidden DNN skin object 

November 08
2006
3 Comments
By Vasilis Terzopoulos
Tags: DotNetNuke, Skinning

Follow these steps to activate the [PAGETITLE] skin object for your HTML skins.

  1. Log in to your DNN site with your host account.
  2. Browse the Host > Module Definitions page.
  3. In the Modules list find the [Skin Objects] label (usually the first in the list).
  4. Click the small pencil on the left of the [Skin Objects] label.
  5. You are at the Edit Module Definitions page. Scroll that page to find the list with the controls.
  6. Click the Add Control link to open the Edit Module Control page.
  7. In the Key field write PAGETITLE.
  8. In the Source field there is a drop down menu where you have to find the DesktopModules/PageTitle/PageTitle.ascx.
  9. Click update at the bottom of that page.

The [PAGETITLE] Skin Object is now available to your DNN site and you can use it in your skins. You can also include a CssClass property with it to apply CSS styles.

The PageTitle skin object in DNN 4.x

DotNetNuke 4.x does not include the PageTitle skin object out of the box. So if you want to make it work in your DNN 4.x web site, you have to either install the skin object from DNN 3.x or put the files manually.

  • To install the skin object from DNN 3.x, find the zip file which is located in the (DNN 3.x root)\DesktopModules\PageTitle folder, and then install it at your DNN 4.x web site following the common module installation process.
  • To put the files manually, you have to copy two files from DNN 3.x to DNN 4.x. These are the ~\DesktopModules\PageTitle\PageTitle.ascx and the ~\bin\DotnetNuke.Modules.PageTitle.dll

The PageTitle in ASCX skins

In ASCX skins you don't need a skin object. Use the code below to get the title of the page you're browsing:

 <%=PortalSettings.ActiveTab.TabName %> 

I found this tip among others on Snapsis forums. Check this thread: DotNetNuke Tokens: Some tricks for getting more than SkinPath in your skin.

AddThis Social Bookmark Button

Comments

Tuesday, April 04, 2006 at 5:07 PM
rstacey481 says:
Thank you... I knew there had to be a way. I've just been using DNN for three days, I'm in the process of designing the companies CMS with it and I wanted to use the page title in the skin but I couldn't find it and couldb't afford to spend too long looking... cheers
Thursday, November 09, 2006 at 4:58 AM
rudgr says:
Hi,

I'm trying this in dnn 4.3.5 but it says it can't find:

DesktopModules/PageTitle/PageTitle.ascx

Is this no longer supported?

If it is, can this also be used in an ascx template?

Thanks!
Tuesday, July 17, 2007 at 12:42 PM
Alltaste says:
Wow, thanks - i tried around the last 2 hours without success.

Click here to post a comment