Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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:
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
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...
Write your reply to:
Image will be uploaded when post is submitted