Copied to clipboard

Flag this post as spam?

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


  • Harsheet 71 posts 302 karma points
    Jul 16, 2018 @ 00:08
    Harsheet
    0

    Hide a property in Umbraco 7

    Hello,

    I want to hide a property in Umbraco 7. So far, I have got this blog but it works well for Umbraco 6 - https://dejanstojanovic.net/umbraco-cms/2014/may/hide-property-in-umbraco/

    Any help would be greatly appreciated.

    Thanks

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jul 16, 2018 @ 04:38
    Jan Skovgaard
    100

    Hi Harsheet

    What kind of property is it that you want to hide? Depending on what and why with Umbraco 7 it can be as simple as creating a stylesheet targeting the CSS selector of the property you need to hide.

    Maybe you can find some inspiration about how to achieve it by reading these two articles

    https://24days.in/umbraco-cms/2015/umbraco-7-back-office-tweaks/

    https://skrift.io/articles/archive/changing-backoffice-functionality-without-changing-core-code/

    I hope this helps!

    /Jan

  • Harsheet 71 posts 302 karma points
    Jul 16, 2018 @ 05:03
    Harsheet
    0

    Thanks Jan, the first link for tweaking stuff is a nice workaround for the problem I have.

    Thanks so much!!

  • Harsheet 71 posts 302 karma points
    Jul 16, 2018 @ 05:43
    Harsheet
    0

    I am able to change the view based on the link you sent, but I want to call a GET api and based on the response value (true or false), I want to show and hide one of the properties (its a text box) in the backoffice.

  • Sotiris Filippidis 286 posts 1501 karma points
    Aug 12, 2018 @ 11:19
    Sotiris Filippidis
    1

    Based on the articles above, I put some code together and wrote a blog post about it - although it's volatile because it depends mainly on code in the back office, it works well on 7.8 to 7.10 and doesn't require modifying anything in the back office: https://www.dot-see.com/en/blog/a-simple-way-to-hide-fields-in-the-umbraco-back-end/

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

    Continue discussion

Please Sign in or register to post replies