Copied to clipboard

Flag this post as spam?

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


  • Vincent 75 posts 98 karma points
    Jul 20, 2010 @ 20:41
    Vincent
    0

    Mandatory

    Hi,

    Is it possible to make this dataType mandatory? When I try I get this error :

    Your data has been saved, but before you can publish this page there are some errors you need to fix first: ...

     

    Thanks!

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jul 20, 2010 @ 21:16
    Stefan Kip
    0

    As far as I know, that's exactly the behavior of Required fields in Umbraco...

  • Vincent 75 posts 98 karma points
    Jul 20, 2010 @ 21:24
    Vincent
    0

    So if I set my field as mandatory and select nodes in the Tree Multi Picker I should not have this error but I'm getting it. And that's my problem. It's ok to have this message if I don't select any nodes but not if I do...

    Thx

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jul 20, 2010 @ 21:25
    Stefan Kip
    0

    Ah ok, it wasn't clear to me that you did select some nodes...

  • Vincent 75 posts 98 karma points
    Jul 20, 2010 @ 21:32
    Vincent
    0

    Sorry I'm a guy from Canada who speak french, so my english is not that good...

    So do you have any idea why I get this error? I'm using umbraco 4.0.3. 

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jul 20, 2010 @ 21:42
    Stefan Kip
    0

    No sorry, Required fields are integrated in Umbraco and I don't know how this package uses it.

  • Vincent 75 posts 98 karma points
    Jul 20, 2010 @ 22:52
    Vincent
    0

    And what if I download the source and edit them, where do I need to look? Is there any documentation on this topic?

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jul 20, 2010 @ 23:06
    Stefan Kip
    0

    I'm not sure if there's any documentation about this.

    You could try the search or google. If there's not, you can also look into the Umbraco source code to find out how it determines if a value is empty.

  • Marco Lusini 176 posts 1370 karma points
    Jul 21, 2010 @ 09:19
    Marco Lusini
    0

    I never tryied something like this.

    I'll try to have a look at it, but can't promise anything.

     

  • Marco Lusini 176 posts 1370 karma points
    Jul 21, 2010 @ 16:22
    Marco Lusini
    1

    OK, this was easier than expected :)

    I have uploaded version 0.7 which should fix this issue.

    Ciao, Marco

  • Marco Lusini 176 posts 1370 karma points
    Jul 21, 2010 @ 16:26
    Marco Lusini
    0

    Vincent, if you like this package, vote for it!

    /Marco

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jul 21, 2010 @ 16:43
    Stefan Kip
    0

    Marco,

    When will you add Umbraco 4.5 support? Can't wait! :D

  • Vincent 75 posts 98 karma points
    Jul 21, 2010 @ 16:44
    Vincent
    0

    Hi Marco,

    Great, thanks a lot for the modification, it works as expected!

    Don't forget to put youre source on codeplex, I wan't to take a look at youre control to see what's the difference with previous version.

    One thing that be great on this control is to be able to upload directly new Media to the section since I use it sometimes to allow my users to select media files, just like the Improved Mediapicker (http://our.umbraco.org/projects/backoffice-extensions/improved-mediapickerdoes, with that functionnality we would have one killer control!

    If I had enought karma to vote for youre project I'll do it...

     

    PS: version 4.5 would be a good thing since I will not update unless you have a 4.5 version ;)

    Thanks again!

  • Marco Lusini 176 posts 1370 karma points
    Jul 21, 2010 @ 17:02
    Marco Lusini
    0

    I have uploaded sources here on Our Umbraco, I am wondering to remove my project from Codeplex, since I don't use any of its features..

    As for support for 4.5, it isn't going to be easy...

    Keep an eye on uComponents project (on Codplex), 'cause there is where Shannon (and others) is going to build on his CodeGarden datatype, and he is the right one to work with the new tree infrastructure.

    I'll try to update my work, but I don't know if I'll ever manage to finish it... as of now I have troubles with supporting several instances of the DataType on a single Document Type and with selecting a start node that is different from the root.

    /Marco

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Jul 21, 2010 @ 17:24
    Stefan Kip
    0

    Marco,

    The Multi Node Tree Picker had the exact same problem; it didn't support multiple instances on one document.

    I created a patch which fixes this: http://ucomponents.codeplex.com/SourceControl/PatchList.aspx (#6266)

Please Sign in or register to post replies

Write your reply to:

Draft