Menu
Reply To Topic Topic: Useful DNN SQL Scripts
:
Posted By Deleted User on 1/19/2013 12:08 PM
Scripts for working with modules and pages. Find the ModuleID's of the modules on a particluar page SELECT * FROM TabModules WHERE TabID = 254 Note: Instead of 254, use the tabid of the page in question. Find the ModuleID's of the modules on a particluar page in a particular named pane SELECT * FROM TabModules WHERE TabID = 254 AND (PaneName = 'RightPane') The quick way to delete modules from a page. This is particularly useful when you have selected to add a module to all pages in the site and there area few pages where they should be removed. DELETE FROM TabModules WHERE TabID = 767 AND (ModuleID= 1620 OR ModuleID= 1618 OR ModuleID= 1619 OR ModuleID= 1621 ) Here is the quick way to move modules to another pane. This is useful when you have changed the skin and your modules need to be repositioned to better panes in the new skin. This is for one page at a time: UPDATE TabModules SET PaneName = 'ThreeGrid3' WHERE TabID = 907 AND (PaneName = 'TwoGrid4C') This moves all instances of any module in the 'TwoGrid4c' pane to the 'ThreeGrid3' pane on all pages UPDATE TabModules SET PaneName = 'ThreeGrid3' WHERE PaneName = 'TwoGrid4C'
Username:
Security Code:
CAPTCHA image
Enter the code shown above in the box below.
Subject:
RE: Useful DNN SQL Scripts
Message:
Smilies

Submit

Cancel
Subscribe:
Topic Review