Thursday 21 April 2011

Number of versions in HTML module (DotNetNuke)

By default HTML module for DotNetNuke has deep of versions equal 5. And there is no way to change it with user interface. This is not good, because sometimes we need more versions to save.

We can fix it easy. Number of versions located in the Portal Settings table and can be easy changed with query like this:

UPDATE {databaseOwner}{objectQualifier}PortalSettings
SET SettingValue = '5'
WHERE (SettingName = 'MaximumVersionHistory') AND (PortalID=0);

All you need is just replace '5' with number of versions you need and PortalID with ID of your portal (usually 0).

Do not forget after this query restart Application Pool (Host/Host Settings/ Restart Application). It should update a cache.

Hope this helps!

No comments:

Post a Comment

Note: only a member of this blog may post a comment.