Overview
If you have multiple changes in draft state and you would like to publish the pages in bulk, you will need to accomplish this programmatically through SQL.
Prerequisites
- A superuser account on DNN Instance.
- TabID of the page that has been updated.
Solution
To publish changes for a specific page
- Go to the site's DNN Instance.
- Open the Persona bar.
- Navigate to Settings > Site Settings > SQL Console.
-
Run the following query to find the TabID after replacing
%PAGENAME%
with the name of the page.SELECT * FROM tabs WHERE tabname LIKE '%PAGENAME%'
- If you need to publish a specific version, you can use the process steps listed in Viewing the Latest Page Versions to find the specific version in the Page History table.
-
Run the following query to publish the changes after replacing
%TabID%
and%version%
acquired from the previous steps as needed.UPDATE TabVersions SET IsPublished = 1 WHERE TabID = %TabID% AND version = %version%;
- Click on the Run Script button. The script execution output will be displayed at the bottom of the page.
To publish changes for all pages
- Go to site's DNN Instance.
- Open the Persona bar.
- Navigate to Settings > Site Settings > SQL Console.
- Click on Upload File.
- Upload the attached query.
- Click on the Run Script button. The script execution output will be displayed at the bottom of the page.
Testing
Visit the affected page(s) and you should be able to see the changes published.
Comments
0 comments
Please sign in to leave a comment.