Copied to clipboard

Flag this post as spam?

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


  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Feb 28, 2010 @ 14:10
    Morten Bock
    1

    Source code

    Hi Ron

    Really curious about this package. Will you share the source for it at some point, or is it a closed source project?

  • Ron Brouwer 273 posts 768 karma points
    Feb 28, 2010 @ 16:17
    Ron Brouwer
    0

    Hi Morton,

    I'm not sure yet, what part of the source are you interested in?

    The reason I don't publish the source immediately is because I don't want multiple projects offering the same functionality.
    I'd like to maintain one package to satisfy everyone's needs.

    Ron

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Feb 28, 2010 @ 16:25
    Morten Bock
    0

    Mostly I'm just interested in which technique you are using to cause the properties to render as "Not available", because I might need something similar for a project. (And also because I am just curious by nature :D)

  • Ron Brouwer 273 posts 768 karma points
    Feb 28, 2010 @ 16:33
    Ron Brouwer
    0

    You just need to handle the AfterContentControlLoad event.

    public Handler()
    {
    ContentControl.AfterContentControlLoad += new ContentControl.AfterContentControlLoadEventHandler(ContentControl_AfterContentControlLoad);
    }

    void ContentControl_AfterContentControlLoad(ContentControl contentControl, ContentControlLoadEventArgs e)
    {
    Controller.HideDisabledProperties(contentControl);
    }

    Ron

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    Feb 28, 2010 @ 16:47
    Morten Bock
    0

    Ahh, I learn something new every day. Thanks for the tip.

  • Ron Brouwer 273 posts 768 karma points
    Feb 28, 2010 @ 16:51
    Ron Brouwer
    0

    Thats the joy of every Umbracoholic :p
    Please be so kind to select the solution.

    Ron

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Mar 01, 2010 @ 09:01
    Jeroen Breuer
    0

    The ContentControl.AfterContentControlLoad is really usefull. You can find a good example at the following topic:

    http://our.umbraco.org/forum/using/ui-questions/5493-Undelete-in-media-section-?p=2

  • Edward Dudley 80 posts 121 karma points
    Apr 30, 2010 @ 16:03
    Edward Dudley
    0

    Is it possible to get the source code on the condition I would not fork / modify / redistribute it?

    You can email me: sites [at] eddudley [dot] net if you'd prefer to discuss off forum

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft