smcculloch posted on March 02, 2007 01:43

Occasionally, I get asked specific questions about DNN and rather then reply to them in email, this might be a better place to do it.
Today’s question is:-
“Do you know if there’s a way to reset an entire portal, all pages, to a particular skin?”
One of the advantages of DotNetNuke is its granular assignment of skins and containers. Skins can be applied at the host (all portals), a single portal and even a single page. Containers are even a step further being applied at host (all portals), a single portal, a single page and even a module on a page.
A problem with assignments at a lower level is that there is no function to replace all permissions on everything below. For example, the question above indicates that they have used page level permissions for skins and attempted to change skins.
There is an easy way to clear all of these assignments IF you have database access. You can run the following query:-
UPDATE dnn_Tabs SET SkinSrc = null (WHERE PortalID = [PortalID)*
* Notes
- Optional clause to be used to only apply on a specific portal.
- Watch for the objectQualifier, the default is dnn_
The same concept can be applied to contains and the ContainerSrc column of dnn_Tabs.
Furthermore, there is a discussion on the DNN forums
here.
]