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.
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.
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
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.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
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.
is working on a reply...