umbraco

How do I make Umbraco 5 ignore the bundled (with Examine) Lucene.NET

江枫思渺然 提交于 2019-12-11 06:57:47
问题 I'm using a never version of Lucene.NET with Umbraco 5, but realized that it collided with the version bundled with Examine that is included with Umbraco 5 (See C#: Could not load types from assembly). Rather than just removing Examine and the outdated Lucene.NET library from the \App_Plugins directory, I'm interested in a happy coexistence, where Examine uses my new version of Lucene.NET . I've tried adding this to web.config, but the outdated Lucene.NET library was still used:

Dynamic vs strongly typed elements

不问归期 提交于 2019-12-11 06:35:06
问题 I'm a web developer who is currently using mvc3 razor and Umbraco to create web applications. I've not been in this job long, and have moved over from using dynamic to strongly typed elements to follow standards. Ive never really been given much of a reason, and searching online it seems clear that its much easier to follow and debug set type variables, but I'm confused about using it in functions. For example, when using Umbraco Content, I've now switched to 1Umbraco.TypedContent1. Im

@Umbraco.TypedMedia(MyProperty) is null in Umbraco 7.6.1

こ雲淡風輕ζ 提交于 2019-12-11 06:25:02
问题 I'm using Umbraco 7.6.1 and I'm trying to get the url for a media image using the code below in razor. @{ var bannerMediaItem = Umbraco.TypedMedia(Model.Content.Image); var bannerUrl = bannerMediaItem.Url; } But bannerMediaItem is always null even though I know it exists. If I do this.. @Model.Content.Image It returns the id of the image e.g. 1086 回答1: In Umbraco v7.6 and above, there is now a new thing called UDI. Find out more about UDI here. https://our.umbraco.org/documentation/reference

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

Remove Traiing Foward Slash using UrlRewritingNet

ぃ、小莉子 提交于 2019-12-11 05:33:46
问题 i'm doing some work on a legacy asp.net and umbraco site. It's using UrlRewritingNet to set up rules for url manipulation. I'd like to create a rule in the UrlRewritingNet file to remove the trailing slash from the url. eg. http://www.test.com/index.aspx/ to http://www.test.com/index.aspx Can you please help. 回答1: <add name="noendslash" virtualUrl="^(.*)/$" rewriteUrlParameter="IncludeQueryStringForRewrite" redirect="Application" destinationUrl="~$1" ignoreCase="true" /> 回答2: In the later

404 page that displays requested page

不羁岁月 提交于 2019-12-11 05:19:46
问题 I recently migrated a website to a new CMS (Umbraco). A lot of the links have changed, but they can be easily corrected by searching for patters in the url, so I would like to write something that will redirect to the correct page if the old one is not found. That part isn't a problem. How can I obtain the requested URL after the browser is redirected to my custom 404 page. I tried using: request.ServerVariables("HTTP_REFERER") 'sorry i corrected the typo from system to server. But that didn

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

Getting an error during the deploying webapplication “Could not open Source file: Could not find a part of the path”

五迷三道 提交于 2019-12-11 03:47:54
问题 I got an error during the deploying my web-application. The title of error is Could not open Source file: Could not find a part of the path 'Could not open Source file: Could not find a part of the path 'E:\ARCHIVES\Projects\Main\Jahan.Handicraft\Jahan.Handicraft.Web.Mvc.UmbracoCms.App\obj\Release\AspnetCompileMerge\TempBuildDir\App_Plugins\UmbracoForms\Data\Web.config;\App_Plugins\UmbracoForms\Data\Web.config'.'. I've used Umbraco 7.4.3 und ASP.NET MVC in my project. I'd like deploy it on

TinyMCE scrubbing HTML in Umbraco

人盡茶涼 提交于 2019-12-11 03:25:20
问题 I'm trying to use Bootstrap's collapse functionality in Umbraco, but when I edit the HTML of a page in the rich text editor (TinyMCE), the data- attributes are scrubbed when I save the page so the plugin doesn't work. I've followed Allow any markup in the tinymce editor with no effect. Can I stop TinyMCE scrubbing my HTML? EDIT: I've reproduced the problem at http://fiddle.tinymce.com/BNcaab Try pasting the code below into the HTML editor, then saving and clickig the HTML editor again. <a

Umbraco caching

最后都变了- 提交于 2019-12-11 03:19:27
问题 I'm having real problem with caching in a macro. I've set the cache period to 0 but still a dropdownlist that returns a list of other items in the content tree won't update until I force the application to recycle e.g. touch the web.config file. The Macro uses umbraco.content.Instance.XmlContent.SelectSingleNode to select a parent node and then loops through the children and adds these to the dropdownlist. When I add a new child to this node it doesn't appear in the dropdownlist even if I