Copied to clipboard

Flag this post as spam?

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


  • Mindaugas 6 posts 26 karma points
    Sep 17, 2015 @ 13:37
    Mindaugas
    0

    Document type code

    Hello,

    I am using site builder and editing my document types via code. But sometimes if I erase some property from code it still stays in CMS. Is there a programmatic way(not manually removing it through CMS) to remove property from document type for good?

  • Alex Skrypnyk 6162 posts 24132 karma points MVP 8x admin c-trib
    Sep 18, 2015 @ 09:01
    Alex Skrypnyk
    0

    Hi Mindaugas,

    uSiteBuilder can't delete docTypes and fields, it says at its documentation. You can do it only manually or write custom code for that.

    http://usitebuilder.vegaitsourcing.rs/tutorials?id=22389

    Thanks, Alex

  • Peter Duncanson 430 posts 1360 karma points c-trib
    Sep 18, 2015 @ 11:07
    Peter Duncanson
    0

    I'd recommend being careful with this one. Auto deleting is something you don't really want to be doing (hence it NOT being a feature of uSiteBuilder). If you delete a prop by mistake then there is no easy way to bring it back or more importantly the data with in it.

  • Alex Skrypnyk 6162 posts 24132 karma points MVP 8x admin c-trib
    Sep 18, 2015 @ 18:00
    Alex Skrypnyk
    0

    100% Peter, it's better do not do that via code.

Please Sign in or register to post replies

Write your reply to:

Draft