Grounding.co.za

Technology information for IT specialists
Welcome to Grounding.co.za Sign in | Join | Help
in Search

Managing core content type

Last post 01-25-2010 20:14 by USMAN300. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 06-22-2008 23:17

    • ShadowCat
    • Top 50 Contributor
    • Joined on 04-24-2008
    • Posts 4
    • Points 110

    Managing core content type

    Hi.

    The past week I've trying to find a way to globally set up a rule of some sort to "clean up" documents on SharePoint.

    For example, all documents must be deleted after "last modified date + 1 month".

    I found stuff on "Information management policy".  It's great, except for one problem:

     You cannot specify an information management policy for a core content type. Create a new content type that is derived from the core content  type, and then apply the policy to the new content type.

    Does some of you know of either another solution or a workaround?

    The "rule" or whatever the solution is must also be able to un on content already on our SharePoint server...

    Filed under:
    • Post Points: 50
  • 06-23-2008 8:44 In reply to

    • Neil
    • Top 10 Contributor
    • Joined on 07-30-2007
    • Cape Town
    • Posts 220
    • Points 2,500

    Re: Managing core content type

    Hi There

    I tried to simulate changing the core content type "Document" that is used by all documents that do not derive from a custom content type and received the following error:

    The content type "System Page Layout" at "/" is sealed.
    The content type "System Master Page" at "/" is sealed.
    The content type "Office Data Connection File" at "/" is read only.
    The content type "Universal Data Connection File" at "/" is read only.
    The content type "System Page" at "/" is sealed.
    The content type "Unknown Document Type" at "/" is read only.
    The content type "Page Layout" at "/_catalogs/masterpage" is sealed.

    It therefore became very clear that the core content types cannot be changed as there are too many dependancies on them from other content types. The only solutions is to built the structure the way it was intended.

    1. Build a custom content type that inherits from the base content type "Document"
    2. Apply the content type to the documents.
    3. Build the "Information Management Policy" using this content type for expiration.

    The problem that you currentlty have is that a lot of documentation has already been loaded. Short of manualy editing every single document and changing the content type, you are going to have to build a workflow in Visual Studio.

    Visual Studio 2008 has just recently made an add-on pack availble for sharepoint that makes live a lot easier.

    1. Create a new project in VS 2008.
    2. Connect to the XML web service made available by Sharepoint.
    3. Enumerate through the site collection and programaticaly change the content type of all the documents.
    4. While you are busy, you might as well write a workflow rule to dispose of the documents that is more flexible.

    I am sorry I do not have a quick fix for you, but I how this points you in the right direction.

    PS: There are now Powershell components available for Sharepoint that might also do the trick.

    Regards

    Neil van Wyngaard

    Neil van Wyngaard is a MCSE, MCSD, MCDBA, MCT, MCTS, MCITP, MCBMSS. Neil's core industry focus is CRM, ERP, EPM and ECM implementations in the enterprise environment. Core technology focus is based on SQL Server, Visual Studio, WSS, MOSS and OCS
    Filed under:
    • Post Points: 0
  • 06-25-2008 0:44 In reply to

    • ShadowCat
    • Top 50 Contributor
    • Joined on 04-24-2008
    • Posts 4
    • Points 110

    Re: Managing core content type

    Thank you!

    I'm going to try out the Microsoft Windows PowerShell option first.

    I'll let you know how it goes...

     

     

    Filed under:
    • Post Points: 20
  • 04-22-2009 19:38 In reply to

    • umang55
    • Top 150 Contributor
    • Joined on 04-22-2009
    • Posts 1
    • Points 5

    Re: Managing core content type

     hi if you have tried solution please let  me know. i have exactly same requirement.

    please help me. thank youSmile

    • Post Points: 5
  • 01-25-2010 20:11 In reply to

    • brian200
    • Top 10 Contributor
    • Joined on 01-22-2010
    • Posts 29
    • Points 135

    Re: Managing core content type

     Let's step back a few years. After the massacre in Colorodo, the uppity-socialist Michael Moore attacked the issue of gun control in his documentary "Bowling mcse training for Columbine." While his idealistic musings make Geraldo look like a genius, it's difficult to disagree with his stance on guns. Do we as civilians need access to these harbingers of destruction? The answer ccip certification is and always will be a positive no. Anyone who disagrees is senseless and inconsiderate. I highly doubt mr. NRA member would sing his "my gun is my right" tune the day after his child is murdered by a gun registered to his name. Because, and let's be brutally straightforward here, guns only serve one purpose. This purpose CAN be a good one. There are many things/people/rodents that deserve a lead nap of the eternal kind. However, these are just outliers. Life cisco ccna is everything. For each individual it's the ONLY thing. After life, there lies nothing. So that brings me (quite easily) to the point of this entire article:

    • Post Points: 5
  • 01-25-2010 20:14 In reply to

    • USMAN300
    • Top 150 Contributor
    • Joined on 01-25-2010
    • Posts 1
    • Points 5

    Re: Managing core content type

     What the *** is a 20 year-old assmonger with a sub-hundred IQ and a library card doing with a semi-automatic assault weapon? Is there REALLY debate about microsoft mcp this? I can't fathom one, NOT ONE, scenario where ANYONE needs a semi-automatic weapon. What happened to the good old days when issues were solved with a punch to the noogin' and a swift kick to the junk. Have we really cheapened life SO much that when a kid kills two people quicker than he farts, we are willing to call it his "civil right"? And ccvp certification if these "righties" really need to emasculate themselves in a field while shooting at defenseless animals, then so be it. I could give a donkey *** what those creeps do in their spare time. But they don't need a handgun for that. They need 3 foot long rifles that you could spot from a mile away. After all, a turkey doesn't know the difference between a rifle and a handgun. As a sidenote: is it security+ exam even difficult to hunt turkeys? They are slow as ***. Dumb as ***. Deaf as ***. (Do they even have ears?) Where the *** is the fun in hunting a deaf, slow, retarded animal? (Yes, I'm still talking about turkeys and not George W.) I'm confus

    • Post Points: 5
Page 1 of 1 (6 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Afrigator