umbraco

Umbraco - Select node by URL

*爱你&永不变心* 提交于 2019-12-05 09:46:53
I'm having issues with Umbraco when trying to get access to a node by it's url. I've been trying to form an xpath query to select on the url, but I've no idea how to do that, and everything in their API is a 'dynamic' so I'm finding it impossible to dig much deeper for other methods. The "Link to document" property in the Umbraco editor shows the path to be " /links/link-regions/link-region-1/ ". Its location in the editor is " /Data/Links/Link Regions/Link Region 1 ". I suspect it'll look like this, but I cna't make it work: //*[@url='/links/link-regions/link-region-1/'] I basically want to

Umbraco 7: Could not load type Umbraco.Web.UmbracoApplication

我们两清 提交于 2019-12-05 09:36:57
问题 Created an ASP.NET empty web application in Visual Studio Installed Umbraco 7.1.5 via NuGet Package Manager When asked to overwrite the web.config file, typed Y(Yes) Built the project F5 When I run the project I get the following error in Chrome: How can I solve this problem and get to the installation page? 回答1: I also encountered same problem few days ago..i solved that...Just change the name of MVC project from 'Umbraco' to something else and then it will work fine.. 回答2: The solution,

Does umbraco work on mono?

邮差的信 提交于 2019-12-05 09:20:20
问题 I'd like to run Umbraco on Mono. Is this possible? 回答1: Currently Umbraco does not run properly on Mono but there are known efforts to achieve that goal. This will give a good starting point. 回答2: A community effort has been made to port Umbraco (v4.x) to work on Mono. https://github.com/m57j75/umbracoMono At the time of writing, there is a beta of v4.7.2, with work already started on bringing in the v4.11.x changes. 来源: https://stackoverflow.com/questions/4648131/does-umbraco-work-on-mono

How to set up Umbraco to default in a subpage?

二次信任 提交于 2019-12-05 05:36:38
I have this question about umbraco structuring and I can't find the answer anywhere. Typically in Umbraco it will default the root site to the first node of the tree. so if we have Home page 1 page 2 the default page will be home (so www.mysite.com will point to home). How do I change this however so that www.mysite.com will point to page1 or page2? What if I have this structure? wrapper index page 1 page 2 and I want www.mysite.com to go straight to www.mysite.com/index.aspx I couldn't find a rule that does that. Tried inserting a rewrite/redirect rule and it didn't change anything. Please

How to set up visual studio to create CSHTML files in (Umbraco) Project

吃可爱长大的小学妹 提交于 2019-12-05 05:23:30
So, i'm developing my razor macroscripts in Visual studio for my Umbraco project. Everything is working fine, but there are two things really annoying. If I want to make a new CSHTML file the best solution for this is to duplicate an existing file. I dont have full razor IntelliSense like e.g. Html.Raw Is there a way to configure my project to use this features? Didn't find a .cshtml template yet. Douglas Ludlow You need to have the MVC Framework installed, then when you open the project as a website, you should be able to create and edit cshtml files with syntax highlighting. See my answer to

Umbraco get dictionary item by language, how?

[亡魂溺海] 提交于 2019-12-05 04:41:53
In Umbraco v6 it's possible to get a dictionaryitem with the following command: umbraco.library.GetDictionaryItem("EmailSubject"); This retrieves the proper value of "EmailSubject" depending on which culture the user is visiting the umbraco website. Now I'm writing a simple email class library where I don't care about System.Threading.Thread.CurrentThread.CurrentCulture and I don't want to set the CurrentCulture all the time, before getting the value. It works, but I don't like the approach. I'm writing a simple mailing library. For each mail recipient I think it's not really efficient to set

Generate GUID in XSLT

北城余情 提交于 2019-12-05 03:46:48
I need to generate a GUID with XSLT and if needed C#, does anyone know how to best do this? It is to generate unique IDs for HTML items. The XSLT generate-id function returns a string that uniquely identifies a node in the document. Note these warnings from the spec: An implementation is under no obligation to generate the same identifiers each time a document is transformed. There is no guarantee that a generated unique identifier will be distinct from any unique IDs specified in the source document. However, if all you need is to uniquely identify each element in your output, then generate

Multi-tenancy support: Umbraco vs Orchard Project

耗尽温柔 提交于 2019-12-05 00:13:05
I am currently using an older version of Umbraco (4.03) and I have several basic sites (mostly 1 pagers) running under the same IIS Application. I have a shared hosting account with Winhost.com, which doesn't offer multiple site application roots, just domain pointers, so I'm limited to a single CMS installation that supports multi-tenancy. The Umbraco multi-tenancy setup is a bit hacky and I really need to upgrade. It seems that Orchard is more focused on multi-tenancy support. My Umbraco installation has some issues with shared skins, which has always been a little annoying. So, the basic

Error when trying to cast anonymous object, Razor

前提是你 提交于 2019-12-04 19:58:23
I am trying to cast an array of anonymous objects, where each object looks like this: new {type="internal",title="Linktitle",target="_blank",link="http://www.google.se"} I have declared a Class "Link", to which the anonymous objects should be casted class Link{ public string type {get;set;} public string target {get;set;} public string title {get;set;} public string link {get;set;} } Now i am trying to cast the objects, like this List<Link> links = Model.relatedLinks.Select(l => new Link{type=l.type,target=l.target,title=l.title,link=l.link}).ToList(); Then i get the error Cannot use a lambda

Could not load file or assembly 'System.Web.Razor' or one of its dependencies

☆樱花仙子☆ 提交于 2019-12-04 16:30:49
问题 I used Umbraco 4.11.6 in my website(web application).My website is worked in localhost(tested from Visual studio 2012 and IIS(v7)) but when I run it from internet space I got an error. The error was: Could not load file or assembly 'System.Web.Razor' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) Assembly Load Trace: The following information can be helpful to determine why the assembly 'System