Copied to clipboard

Flag this post as spam?

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


  • Murray Roke 467 posts 875 karma points c-trib
    Sep 01, 2015 @ 22:35
    Murray Roke
    0

    Umbraco 7+

    Any thoughts on how to achieve something similar in umbraco 7? for now I just want to hide the preview button if there is no template.

    https://our.umbraco.org/forum/developers/extending-umbraco/24663-How-to-hide-Preview-button-on-documents-with-no-templates#comment-228504

    Cheers. Murray.

  • Lee Kelleher 3945 posts 15163 karma points MVP 10x admin c-trib
    Sep 03, 2015 @ 09:55
    Lee Kelleher
    1

    Hi Murray,

    In v7, for any custom CSS & JS, I've been using the (App_Plugins) package.manifest to reference them.

    I'm not sure if this is the latest docs, but there's this:
    http://umbraco.github.io/Belle/#/tutorials/manifest

    Cheers,
    - Lee

  • Murray Roke 467 posts 875 karma points c-trib
    Sep 07, 2015 @ 21:36
    Murray Roke
    0

    That looks promising,
    However I'm a complete angular noob, and I don't see how to get my code to run when the editor pane has loaded.

    If I modify the umbraco edit.html file I can add && content.template to the following elemnt to make this work.

     <div class="btn-group" ng-show="!isNew && content.template">
    

    But I'd like to be able to do this through a plugin rather than modifying src.

    Also, I should submit a PR for that change anyway :-]

    which is here: http://issues.umbraco.org/issue/U4-7036

  • Shannon Deminick 1510 posts 5195 karma points hq
    Sep 08, 2015 @ 08:58
    Shannon Deminick
    1

    That issue (http://issues.umbraco.org/issue/U4-7036) has a link to: http://issues.umbraco.org/issue/U4-2670 which has a workaround explanation of using WebApi event hooks to modify the outgoing model. It's not pretty but should work until we create native Umbraco events for such a thing.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies