Copied to clipboard

Flag this post as spam?

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


  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Oct 10, 2011 @ 18:45
    Lee Kelleher
    0

    DocTypeMixins: Update sort order?

    Loving DocTypeMixins, using it on all my new installs!

    One thing I found, not sure if it's a known issue, or potential feature request.  When you add a property to an existing mixin, the order it gets added to the tab is random (this is an Umbraco issue), but if I change the sort order and re-save the mixin, the property that has been added to my doc-type doesn't update the sort order.

    Cheers, Lee.

  • Matt Brailsford 4123 posts 22194 karma points MVP 9x c-trib
    Oct 11, 2011 @ 08:43
    Matt Brailsford
    0

    Hey Lee,

    This was actually by design (of sorts) as the idea is that if you added a property by mixin, but wanted to change it's order on the doc type you've applied it to, then the mixins plugin would modify it next time you applied it. It simply checks it exists.

    We are currently kinda limited too in that we re-use the doc types editor, so we can't really add our own flags for things at the moment, but Pete and I have discussed breaking mixins out into their own tree / editor, so this might be a solution.

    We'll have a think and see what we can come up with. Nice to know you are using it though.

    Matt

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Oct 11, 2011 @ 08:48
    Lee Kelleher
    0

    Thanks Matt. It's no problem re-sorting the properties on individual doc-types - thought I'd throw out it out as a suggestion.

    Previously I was using a very structured doc-type hierarchy ... this worked fine for many projects, but recently found that I've needed to add in properties to specific doc-types (higher up in the hierarchy) ... which lead to redundant properties in the lower doc-types.  Not a problem, but didn't feel very clean.

    Great work chaps!

    Cheers, Lee.

  • Peter Duncanson 430 posts 1360 karma points c-trib
    Oct 11, 2011 @ 11:21
    Peter Duncanson
    0

    Thats the topic of our next hack-a-thon sorted out then!

    Thanks for the feedback Lee and I'm also glad its proving useful for people. Hopefully we can make it even more useful soon :)

    * Orders beer and pizza *

    Pete

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Oct 26, 2011 @ 20:03
    Tom Fulton
    0

    On a similar note, there doesn't seem to be any mechanism for updating the Name or Description of a property from a Mixin.

    I'm guessing this is also by design per Matt's post above - to allow changing them on the doctype you've applied it to, without worrying about the Mixin overwriting it next time you saved. 

    Might be a thought to add a flag for this if you do end up going that route :)

    Thanks for the package!

  • Peter Duncanson 430 posts 1360 karma points c-trib
    Oct 27, 2011 @ 14:25
    Peter Duncanson
    1

    Hi Tom,

    We've already reworked the package to allow for this using some javascript goodness. Yet to release it though as it need finishing up. Watch this space though as we have something other goodies to release along with it.

    Cheers

    Pete

Please Sign in or register to post replies

Write your reply to:

Draft