umbraco7

Can I inject a client-side behaviour into the Umbraco 7 back-office using Angular?

前提是你 提交于 2019-12-12 04:18:21
问题 I'm working with a customised Umbraco installation and I have a situation where I need to run a little extra user interaction when they click the 'Publish' button for the first time with certain types of content. In practice this will be to pop up a box that allows them to use a custom message when sharing the published content to a third-party service. Although I am well versed in Javascript, I haven't spent a lot of time with Angular and what I have done has been fairly straight down the

Different stylesheets for Umbraco multisite

给你一囗甜甜゛ 提交于 2019-12-12 04:17:50
问题 I have set up two different websites on one Umbraco instance, but I want them to use slightly different stylesheets. I found this blog post: http://www.spacebetween.co.uk/blog/2016-10-27-journal-of-a-junior-multisite which attempts to demonstrate how this can be achieved. However, there are two bits of code given without any direction as to where to place them. I've tried a couple of different places but with no success. I'm hoping someone who knows more about Umbraco and MVC than I do will

New UmbracoForms (not Contour) AJAX call

可紊 提交于 2019-12-12 02:56:16
问题 Update: The project has been started that should amend most, if not all, the problems UmbracoForms have (including AJAX calls). The discussion started on this forum thread: our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/69933-replacing-contour-umbraco-forms-with-something-better . The website for the solution is: www.formulate.rocks and expected release date is 'early 2016' as stated on their website. Original post: I am trying to make an Ajax call with new UmbracoForms, but so

CS0246: The type or namespace 'IApplication' could not be found

喜夏-厌秋 提交于 2019-12-11 14:59:52
问题 While customizing the Dashboard, I tried to add a new Ribbon like media and settings. I have followed the documentation... [Application("siteExporter", "Site Exporter", "tray-icon.png", 10)] public class SiteExporterApplication : IApplication { public SiteExporterApplication () {} } ... but I have received the following compilation error: CS0246: The type or namespace 'IApplication' could not be found (are you missing a using directive or an assembly reference?) What is wrong with the code

Umbraco 7: create menu datatype with submenus

南笙酒味 提交于 2019-12-11 14:49:45
问题 How can I create a navigation menu data type with submenu items so that I can create it in the back office with properties like text, href, optional image? Something like dropdown multiple. I've installed Umbraco 7.1.5 with NuGet in VS2013 and using Razor syntax. EDIT: Is it possible to create an object of type menu and edit it in the back-end's UI, for a non-developer. The user should add as many items or sub items as needed with those properties, with a plus sign. I've found this property

Refresh sectionTree on new user login

别说谁变了你拦得住时间么 提交于 2019-12-11 10:42:27
问题 I have a sectiontree which varies based on the current logged in users UserType. The thing is that if i log-out from the backoffice, and logs in with a new user with a lower UserType, the tree is not refreshed - The code is not rerun to generate the tree. This means that the user with a non administrative UserType can access administrative areas in the section, as long as an administrator have been logged in earlier on the same solution. How would i make the SectionTree refresh on new users

Umbraco ApplicationContext.Current is null

删除回忆录丶 提交于 2019-12-11 10:33:06
问题 I have an MVC website and I need to pull out a couple of pieces of data from an Umbraco database. I don't need any of the Umbraco views or any of that stuff. I'm new to the Umbraco Core libraries. What I did was create a reference to the Umbraco.core dll from my web project and added the connection string to the Umbraco database in my web config. I then added a method to attempt to retrieve some data public IContentType GetBenefits() { var contentTypeService = ApplicationContext.Current

Umbraco - custom model causing problems?

巧了我就是萌 提交于 2019-12-11 07:28:51
问题 In a vanilla Umbraco project, i am importing a vanilla MVC app. I am currently beeing held up, by this error: Cannot bind source type eParser.Model.MyModel to model type MyNamespace.Controllers.ViewModel`1[[eParser.Model.MyModel, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]. This is my code: Local project namespace MyNamespace.Controllers { public class MyOutputController : RenderMvcController { private static Parser _parser; public MyOutputController() { _parser = new Parser(@

Cannot save macros when Umbraco 7 in virtual directory

那年仲夏 提交于 2019-12-11 05:54:05
问题 I need to your help as I am new to Umbraco and deployment on IIS. I am deploying my Umbraco application under existing website like this: But I am getting following error when save partial view macro in back office: I don't want to create a new website instead add Umbraco as a new application under existing website.Please guide me! 来源: https://stackoverflow.com/questions/44590291/cannot-save-macros-when-umbraco-7-in-virtual-directory

Umbraco unit tests failing

拥有回忆 提交于 2019-12-11 04:09:31
问题 I am trying to follow Jorge Lusar's suggestion on unit testing Umbraco. I could not get GetRoutingContext method to work because the Umbraco.Web.Routing.UrlProvider constructor is getting a null reference exception (I had downloaded an umbraco 7.0.4 installation previously and compiled the Umbraco.Tests.dll). As I was getting out of options, I decided to download a fresh copy of Umbraco, compile and run a test that would execute the UrlProvider constructor. To my surprise, I got the null