// you’re reading...

CMS

RedDot CMS Plugin: Delete Unlinked Pages


Apart from creating brand new RedDot CMS projects, having worked for a digital agency also gives me the opportunity to work with existing clients to overhaul existing projects (as the client’s needs/goals change over time).

Quite often I find that whenever I need to update an existing project, the client may need to reposition certain pages to another area of the site (which is extremely easy to do thanks to SmartTree) or delete entire sections of pages as they are no longer needed.

Furthermore, from time to time, I might use an existing project as ‘base’ for a new one if they both share similar templates/functionality. To do this I simply copy and re-import the project and delete the majority of the site pages leaving behind a ’skeleton’ site structure to work from.

So getting to the point of telling you all of this…

Deleting multiple pages from a project can be very time consuming – and I tend to do it quite often!!!

To remove unwanted pages from a project, you either have two options:

  1. Delete each page individually one at a time
     

    OR

  2. Disconnect multiple pages from a list or container.

Unlike deleting individual pages (which are automatically moved to the recycle bin), disconnected pages are moved into the ‘unlinked pages’ area where they can be connected back into the project when selecting the ‘connect to existing page’ option. You don’t want users connecting in pages that were once created for a previous project!!

Sure, you can then delete pages that are in the unlinked pages section – but once again, you have select each page individually before you can delete them using the ‘Delete Unlinked Pages Selected in Clipboard’ option.

This plugin enables you to delete all pages that are listed under the unlinked pages section without the need to copy each page individual to the clipboard before deleting. It should save you a lot of time deleting pages (especially if the site has hundreds or even thousands of unwanted pages).

To use this plugin:

  1. Click on the ‘Unlinked Pages’ node in the SmartTree
  2. Click on the ‘Delete Unlinked Pages’ option from the Actions Menu

To install the plugin:

  • Copy the “rdUIDeleteUnlinkedPages” folder into the RedDot plugins folder
  • Install the plugin via the Server Manager

Plugin: Delete Unlinked Pages (ZIP, 24K)

Check out my blog for more RedDot CMS plugins and articles.

Share and Enjoy:
  • Print
  • email
  • Twitter
  • Digg
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • del.icio.us
  • MisterWong
  • Facebook
  • LinkedIn

No related posts.

About the author:

Kim Dezen Kim Dezen is a Senior RedDot CMS (Open Text Web Solutions) CMS Consultant, Developer and Freelancer. Part time DJ and obsessed music / vinyl junkie. Follow me on Twitter: @kimdezen                  Check out my blog: http://www.kimdezen.com for all things related to Red Dot, SEO/SEM and Web Development.

Discussion

7 comments for “RedDot CMS Plugin: Delete Unlinked Pages”

  1. Wow! I just recently wrote such plug-in for my client in Ottawa, Canada – it even has the same name ;)

    However, I cannot download your zip file. It is corrupt for some reason.

    My plug-in permanently deletes the unlinked pages. However, there could be unlinked the whole tree branches. To delete branches I have to run plugin several times until “Unlinked Pages” becomes empty.

    Does your plugin works same way?

    Thank you

    Posted by Vitaliy Rabotnik | July 29, 2009, 4:48 pm
  2. Hi Vitaly, I tried to download the file and was able to do that. Can you try it again?

    Posted by Markus Giesen | July 30, 2009, 2:03 am
  3. Hi Vitaliy,

    The plugin just moves the pages that are listed on screen in the ‘Unlinked Pages’ area to the recycle bin (where they can be perminately deleted in one hit, or moved back into the main project)

    It doesn’t delete tree branches or anything like that.. i feel it may be a little risky doing this as there could the possiblity that you might remove legit content within the site. However – there’s only one way to find out! :)

    Cheers,
    Kim

    Posted by Kim Dezen | July 30, 2009, 3:13 am
  4. I’ve previously built a similar plugin which effectively mimics the existing search for unlinked pages functionality, with the option to delete pages individually or on mass. It had the advantage of being able to see the state icon (green tick or red cross) and would even return pages it couldn’t delete with the option to force delete (often caused by references). Vitaliy is correct in that deleting pages in this way, you often create more unlinked pages. My plugin just kept showing results to delete until there were none or you got bored. Kudos to Kim for taking the time to share his plugin – this type of plugin is a godsend for cleaning up projects.

    Posted by Adrian Mateljan | July 30, 2009, 2:11 pm
  5. Strange, I’m able to open plug-in with Firefox, but not with IE. Must be weird settings on the office computer.

    Anyhow, thank you for your response.

    Posted by Vitaliy Rabotnik | July 30, 2009, 4:52 pm
  6. Hello all,

    we all have the same needs! I wrote a batch program using my CMS API using the xsearch functionality to first delete all unlinked pages older than a given limit, at my side 100 days.

    In a second step I use the xsearch to find and really delete all pages from recycle bin older than 100 days.

    This reduce the database size of my project from 34GB back to 25GB!

    You could find the CMS API in an older post.

    Regards
    frank

    Posted by Frank | November 10, 2009, 10:35 am
  7. Has this worked for anyone with version 9.0?
    I coudldn’t get this to work for me. I do see the option when I am at the linked pages, and when I click, it goes like it is behaving normally and even show me the message that pages got deleted successfully, but they weren’t. They are still there. I did this numerous times with the same result.
    I thought it was because the version I am using, so I went ahead and updated the xml file to point to my new version, but still no success. I even cleared the page cache and logged off/on.

    Posted by Shiei Rafithi | April 21, 2010, 5:31 pm

Post a comment



Stay up to date! - Get notified about followup comments

If you don't feel the urge to comment but wish to stay in the loop:
Just enter your email and subscribe to new comments.

Subscribe without commenting

Recent Tweets

  • RT @AirKraft: Transport Canada breakout: they manage 80K pages and 300K assets with WSM(RedDot). Wow! #OTCW 2010-11-11
  • The RedDot usergroup session 'Future of WCM' is in National Harbor 7, now. See you there! #otcw 2010-11-11
  • RT @yttergren: @AirKraft: Calling all WSM(RedDot) devs: share your solutions on http://bit.ly/bgPIof EVERY solution can win an iPad #OTCW 2010-11-10
  • Come to the Solution Exchange session. Enhance your (#reddot) CMS project! Chesapeake 12, 3:20pm #otcw Looking forward to see you there! 2010-11-10
  • More updates...