umbraco

Umbraco - Finding Root Node in C#

眉间皱痕 提交于 2019-12-08 15:19:11
问题 I'm working on a backend module, so Node.GetCurrent() is not an option. I need to find a way to call something like Node currentNode = new Node(parentNodeId); and get the root node of the site. I've seen samples in XSLT, but nothing for C#. Does anyone know how I can accomplish this? Even just getting the ID of the root node so I can call new Node() would be great. 回答1: The rootnode is always available as: var rootNode = new Node(-1); 回答2: Update for Umbraco 7 (may work in earlier versions

Host custom WCF service with authentication within Umbraco

不羁的心 提交于 2019-12-08 13:58:26
I've created a custom WCF service within Umbraco. The service resides in the Service folder and seems to be working fine (I can call it and it responds appropriately). Now I want the users to authenticate themselves when they call the service. To do this I've added these lines into the web.config : <system.serviceModel> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" /> <bindings> <webHttpBinding> <binding name="RaceManBinding"> <security mode="None" /> </binding> </webHttpBinding> </bindings> <services> <service name="RaceManagerAdmin

Umbraco cannot find the route in backoffice

蓝咒 提交于 2019-12-08 13:41:33
问题 I've used Umbraco 7.3 in my project. I created a custom data type but when I want to call a Surfacecontroller in here is HelloSurfaceController or Hello2SurfaceController , I got an error in umbraco backoffice that said Request error: The URL returned a 404 (not found): I studied some articles about routing but I couldn't solve my problem. I don't know that where I did wrong. How can I solve this problem? Reply.controller.js: angular.module("umbraco") .controller("Reply.controller", function

Creating a new CMS, importing content from ASP - Umbraco or Sharepoint?

有些话、适合烂在心里 提交于 2019-12-08 09:37:01
问题 I'm working on a project to create a CMS, which will entail importing a lot of existing content, most of which is static, but in ASP (so they're not all just pure HTML, there are includes and sometimes other server-side code). We're considering using Umbraco or Sharepoint (2010) for managing the external content, which currently comprises a few thousand pages. I've read this and I think there are good cases to be made for both sides. However, while I've read about the features of adding and

Host custom WCF service with authentication within Umbraco

前提是你 提交于 2019-12-08 07:20:49
问题 I've created a custom WCF service within Umbraco. The service resides in the Service folder and seems to be working fine (I can call it and it responds appropriately). Now I want the users to authenticate themselves when they call the service. To do this I've added these lines into the web.config : <system.serviceModel> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" /> <bindings> <webHttpBinding> <binding name="RaceManBinding"> <security mode=

ASP.net Upload Limit Server timeout

删除回忆录丶 提交于 2019-12-08 07:18:56
问题 I'm having a problem with uploading files in the media section of Umbraco. I'm not sure if the problem is size related as I don’t get an error that give too much details but I'll explain what I’ve done so far and see if you can help. I've added: <httpRuntime maxRequestLength="102400" executionTimeout="3600"/> to the web.config within the tag I've added the same httpRuntime tag to the servers default web.config restarted all the app pools for the websites and the problems still persists. The

Deploying Umbraco v8 app to Azure using Azure DevOps

最后都变了- 提交于 2019-12-08 07:07:28
Has anyone used Azure DevOps to deploy an Umbraco v8 application to Azure? I can successfully deploy via Visual Studio, but Azure DevOps only seems to copy over all the dlls to the target, no views or anything, and a zip does not get generated. If anyone has managed this could they share the steps they took please? The steps I have in the pipeline are: Build Test Deploy Publish Symbols Copy File to Publish Artifact What I did notice is that I need a publish profile to successfully publish from Visual Studio, however I cant see where a profile should be included in Devops, unless it should be

Ignore special characters in Examine

旧街凉风 提交于 2019-12-08 07:04:23
问题 In Umbraco, I use Examine to search in the website but the content is in french. Everything works fine except when I search for "Français" it's not the same result as "Francais". Is there a way to ignore those french characters? I try to find a FrenchAnalyser for Leucene/Examine but did not found anything. I use Fuzzy so it return results even if the words is not the same. Here's the code of my search : public static ISearchResults Search(string searchTerm) { var provider = ExamineManager

Umbraco & TFS - Including hidden files

ε祈祈猫儿з 提交于 2019-12-08 05:27:00
问题 I have an umbraco 6.* site set up in VS2012 and am using TFS for source control. If I add templates, media items etc to the umbraco site through the umbraco backend the new files are not automatically included in the solution and I have to manually include the files so that they can be checked in to source control. This can become quickly unmanageable when installing packages etc. or anything that creates a lot of files throughout different folder locations. Does anyone have a solution to

Using xsl:if doesn't include closing tag

柔情痞子 提交于 2019-12-08 04:52:55
问题 Trying to use the following code to insert a google ad inside of a blog roll <xsl:if test="position() = 3"> <object data="/frontpage_blogroll_center_top_728x90" width="735" height="95" ></object> </xsl:if> For some reason the closing tag </object> doesn't get rendered in the HTML and causes error. Is there anyway to resolve this? 回答1: There is no difference (except lexical) in XML between : <object></object> and <object/> These represent exactly the same XML element, and different XSLT