Copied to clipboard

Flag this post as spam?

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


  • spacecowboy 60 posts 63 karma points
    Jan 28, 2014 @ 06:43
    spacecowboy
    0

    Setting courier defaults on right-click deploy

    There are a number of very valid recommendations in the "Lobby" thread for using courier - in summary:

    The general consensus is that the revision packaging is not working correctly as yet, however "one-click deploy" does work as long as you:

    1. Uncheck the "Yes, transfer children as well"
    2. Click "go to advanced settings"
    3. Select "Selected items only" from the transfer dropdown

    So really it should be called "on-click and a few more deploy" but anyway, has anybody come up with a good way of setting those as defaults and making them unchangeable - certainly for our content editors "one-click and a few more" isn't going to work as sooner or later somebody will forget the "few-more" bit and suddenly we have a stuffed site again

    If the default valuse can be locked to the above at least it means courier can still be used for content - I mean it could be hacked with jquery right..? But then thats a bit iof a hack...

    Any feedback greatfully received

     

    SP

     

    PS: I note that some settings are available under "Courier Security" in the User node - but not quite the right ones as far as I can see

     

     

  • Nicholas Westby 1894 posts 6333 karma points c-trib
    Jul 25, 2015 @ 00:50
    Nicholas Westby
    0

    It would be great if this were configurable to have more sensible defaults. For now, what I did was modified /umbraco/plugins/courier/dialogs/CommitItem.aspx with these changes:

    • Set Checked="false" on cbTransferAllChildren.
    • Added CssClass="btn btn-primary" to the "Go to advanced settings" button.
    • Added style="display: none;" to the "Deploy" button.
    • Added the below script toward the end of the "paneSelectDefaults" pane.

    Script:

    <script type="text/javascript">
        (function () {
            var $ddlDepth = jQuery("#" + "<%= ddlDepth.ClientID %>");
            $ddlDepth.val("0");
            var $cbDeps = jQuery("#" + "<%= cbOverWriteDeps.ClientID %>");
            $cbDeps.prop("checked", false);
            var $cbFiles = jQuery("#" + "<%= cbOverWriteFiles.ClientID %>");
            $cbFiles.prop("checked", false);
        })();
    </script>
    
Please Sign in or register to post replies

Write your reply to:

Draft