umbraco

Global.asax in Umbraco 6

匆匆过客 提交于 2019-12-03 19:30:53
问题 I had the following in my Global.asax (Umbraco 4.7) Application_Start Application_EndRequest Application_Error Session_Start Session_End Now I have upgraded to Umbraco 6.0.3, which global.asax inherits from Umbraco.Web.UmbracoApplication Where do I put my event handlers (and what are the equivalent method names)? 回答1: This is what I found so far. You can create your own class public class Global : Umbraco.Web.UmbracoApplication { public void Init(HttpApplication application) { application

mojoPortal OR Umbraco?

五迷三道 提交于 2019-12-03 15:59:18
问题 I have been look around for Free/Open Source ASP.NET CMS / Portal systems for a while now, and have seived it down to two different ones. Umbraco - http://umbraco.org mojoPortal - http://www.mojoportal.com Both look excellent and have different appealing features, but I am looking for people who have used both and which one you went with and why?? 回答1: I actually went for Umbraco in the end and would never look back, its incredibly easy to install and use To install you can use the web

Display Image from Media Library in Umbraco 7

回眸只為那壹抹淺笑 提交于 2019-12-03 08:26:45
问题 This should be something embarrassingly simple, but I can't get it to work: I'd simply like to display an image that was uploaded to the Umbraco Media Library (Umbraco 7.1.1) within a Partial View template. The code is @inherits Umbraco.Web.Mvc.UmbracoTemplatePage @{ var imgNode = CurrentPage.BannerBackgroundImage; var imgUrl = umbraco.library.NiceUrl(imgNode); <div id="banner-wrapper" style="background: url('@imgUrl') center center no-repeat;"> <!-- some irrelevant content --> </div> } where

Unit Testing a RenderMvcController even possible?

一曲冷凌霜 提交于 2019-12-03 07:48:29
So I'm working with Umbraco 6.12 and having great difficulty been able to test a RenderMvcController . I have implemented IApplicationEventHandler in my Global.ascx and Ninject is working fine and as expected when running the application - all good. However, unit testing these controllers is a different matter. I found this, and have added the latest reply: http://issues.umbraco.org/issue/U4-1717 I now have this lovely hack in my SetUp: Umbraco.Web.UmbracoContext.EnsureContext(new HttpContextWrapper(new HttpContext(new HttpRequest("", "http://www.myserver.com", ""), new HttpResponse(null))),

MVC and Umbraco integration

好久不见. 提交于 2019-12-03 05:23:45
问题 I've followed the steps from http://memoryleak.me.uk/2009/04/umbraco-and-aspnet-mvc.html and integrated MVC in Umbraco with success, but I still have a problem which is critical for me. Is there any way to inherit the Umbraco defined templates in an MVC view? As I understand the problem is that the Umbraco templates become HTML only at runtime and the doctype properties, as @nodeName , are not recognized and "Object null reference" exception being thrown because of this. Thank you! 回答1: This

mojoPortal OR Umbraco?

自古美人都是妖i 提交于 2019-12-03 05:21:50
I have been look around for Free/Open Source ASP.NET CMS / Portal systems for a while now, and have seived it down to two different ones. Umbraco - http://umbraco.org mojoPortal - http://www.mojoportal.com Both look excellent and have different appealing features, but I am looking for people who have used both and which one you went with and why?? I actually went for Umbraco in the end and would never look back, its incredibly easy to install and use To install you can use the web platform installer to install it and the AMAZING amount of free projects you can EASILY install with a couple of

Avoid deleting folder on Web Publish

◇◆丶佛笑我妖孽 提交于 2019-12-03 04:48:58
I'm deploying my application to an Azure Website. I've configured the Publishing Profile succesfuly and setup tfspreview.com to publish automatically using continuous integration on each code commit. I have a folder on the path "/media". This folder has pictures and documents uploaded through the CMS (umbraco). This folder gets deleted on each web deploy. From this answer , I learned how to add a SkipDelete rule on either the .csproj or on the wpp.targets file, but everytime I publish the site the whole folder gets deleted anyway. Here is the code I'm currently using inside wpp.targets:

Should I delete TEMP folder when publishing Umbraco?

喜夏-厌秋 提交于 2019-12-03 02:41:54
When I publish content to my server should I publish `AppData\Temp' folder as well? Logic is not to do that but cannot find information online about it. When deploying your application, you should follow these guidelines for your App_Data folder. App_Data Permissions = Read, Write Required folders The following folders are required for Umbraco to serve. As long as these folder exist (they can be empty) Umbraco 4/6 will be happy. App_Data\ App_Data\TEMP\ExamineIndexes App_Data\Logs App_Data\preview Not required / Ignore Cache (e.g. locally created files) App_Data/TEMP/ExamineIndexes/* App_Data

Extending the umbraco dashboard

╄→гoц情女王★ 提交于 2019-12-03 01:32:23
问题 I'd like to add my own section to the umbraco dashboard so that I can integrate my own admin piece to the existing login/admin structure. Is this possible without editing and recompiling the umbraco source itself? Is it recommended? If so, does anyone have resources to get started doing this? 回答1: Yes this is possible. The backend can be extended both in terms of the dashoard, sections and content trees. There is a config file you can use to define new dashboard sections. The config file can

Umbraco: differences between Node, DynamicNode, Content

为君一笑 提交于 2019-12-03 00:30:59
Then there are many class that represents Umbraco documents: 1) umbraco.cms.businesslogic.Content 2) umbraco.cms.businesslogic.web.Document 3) umbraco.MacroEngines.DynamicNode 4) umbraco.presentation.nodeFactory.Node Are there any others? Can you explain what they do, and when to use them? umbraco.MacroEngines.DynamicNode and umbraco.presentation.nodeFactory.Node seem the same. Perhaps it is better to use Node class because it is faster? I have a theory: umbraco.cms.businesslogic.Content and umbraco.cms.businesslogic.web.Document are the representation of cmsContent and cmsDocument DB tables.