Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • queengab 90 posts 23 karma points
    Jan 18, 2010 @ 14:45
    queengab
    0

    Change a node document typew definitely?

    Hi to all,

    it's long time thata i don't wirte no this forum! I improved myself in umbraco... but i have always the same frustration: change the document type for a node or for some nodes... It is possibnle now with umbraco 4?

    Are there some solution? If i change some fileds on  table cmscontent i can change the document type of a node? And i change the filed type (i.e. richetext to textmultiple) do i lost my data??

     

    Doesn't exit a tool or a scripts?

     

    Thanks very much

    Gabriele

  • Seth Niemuth 275 posts 397 karma points
    Jan 18, 2010 @ 15:56
    Seth Niemuth
    0

    You can look at this forum topic for more information: http://forum.umbraco.org/yaf_postst5006_Change-document-type.aspx

    But there is not a way in the GUI to do it. I have done it in the database. You need to change the data property of your current document type data properties to the new document type properties because every single document type has new property data. Then, you can change the document type in the database as well. A user control could be created and packaged to do this that would just require you to line up the different properties. I just haven't created one because I haven't need to switch document types that much.

  • Seth Niemuth 275 posts 397 karma points
    Jan 18, 2010 @ 16:01
    Seth Niemuth
    0

    I just looked and you need to change the [propertytypeid] in the table cmsPropertyData to the new property type id. Then, you need to change [contentType] in the table [cmsContent] to your new document type id.

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Jan 19, 2010 @ 22:43
    Aaron Powell
    0

    There is no supported way to change the Document Type of a node. Editing the database to perform the changes may result in data corruption, an unstable umbraco install or a disruption in the space-time continuum.

Please Sign in or register to post replies

Write your reply to:

Draft