Copied to clipboard

Flag this post as spam?

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


  • Petr Snobelt 923 posts 1535 karma points
    Mar 11, 2011 @ 23:05
    Petr Snobelt
    2

    Hide label with usercontrolwrapper

    Hi,

    Is it possible to hide datatype label (like tinymce) with usercontrolwrapper?

    Thanks

    Petr

  • Daniel Bardi 927 posts 2562 karma points
    Mar 12, 2011 @ 00:19
    Daniel Bardi
    1

    What version of umbraco?  I think there are additions that let you add prevalues to usercontrol datatypes, but not sure on hiding the label.. would think there would be.

    You could always use some jquery in the usercontrol to hide the label

    <script type="text/javascript">
    $(function(){

    $('.propertyItemheader').each(function() {
    if ($(this).val()=='Label Text'{
    $(this).hide();
    }
    });

    });

    </script>

  • Petr Snobelt 923 posts 1535 karma points
    Mar 13, 2011 @ 07:04
    Petr Snobelt
    0

    I'm using 4.6.1

    Thanks for jquery script, I hope for serverside solution.

     

    P.

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Mar 14, 2011 @ 13:30
    Tom Fulton
    0

    Hi Petr,

    It does not look to be possible server-side without something like the above.  The ShowLabel option is hardcoded to true.  I don't think it would be hard to implement though, maybe drop a feature request on codeplex?

    -Tom

  • nelsenlim 70 posts 71 karma points
    Apr 22, 2011 @ 05:36
    nelsenlim
    0

    Yes would be a very useful solution, if the label is not rendered by default. Has anyone made that as a feature request, will certainly vote for it :)

Please Sign in or register to post replies

Write your reply to:

Draft