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

    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 6054 posts 23213 karma points MVP 5x 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 1358 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 6054 posts 23213 karma points MVP 5x 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