RSS feed icon BTB Shadow Man BiteTheBullet.co.uk logo

Setting the Author Meta Tag in DotNetNuke

The Problem

I recently wanted to set the Meta AUTHOR tag in DotNetNuke to have my name, however on probing a little deeper in DotNetNuke this value is set to the name of the portal.

DotNetNuke Meta Author Tag

The Solution

I created a simple DotNetNuke skin object which replaces the Meta AUTHOR tag with a custom value so I can set the value to something more meaningful.

Install the skin object into you portal.

Add the skin token [BTBAUTHORMETA] into your portal skin template. It doesn't matter where you add the token in your template the meta tag will be injected into the head element of the html document.

Adding the skin token to the skin template

Set the property AuthorName to the value to output into the meta tag in the skin.xml

Set the property for the skin object

Package the modified skin and skin.xml file then upload to the portal. The Meta AUTHOR tag will now contain the value you've defined in the skin.xml file.

Meta Author now showing the setting from the xml file

Downloads

This skin object is for DNN 5.0 or greater

Compiled Skin Object

Source Code

Privacy PolicyTerms and ConditionsCopyright © 2005 - 2010 BiteTheBullet.co.uk