umbraco5

umbracoNaviHide not working in Where statement

試著忘記壹切 提交于 2019-12-25 04:03:53
问题 Trying to get children of a given document type, with umbracoNavihide not set to false: The following produces correct output. @foreach (var child in root.Children.Where("ContentTypeAlias == \"DocumentTypehere\"")) { if (child.umbracoNaviHide == "False") { continue; } <li>@child.Name</li> } This does not: @foreach (var child in root.Children.Where("umbracoNaviHide == @0 && ContentTypeAlias == \"DocumentTypehere\"","False")) { <li>@child.Name</li> } 回答1: umbracoNaviHide is not supported in

Make a optional search in umbraco

扶醉桌前 提交于 2019-12-11 10:58:27
问题 I made new document type in umbraco.then made some node by this document type in content. i will set up a new search index so found this code that Setting up a new search index. @* Get the search term from query string *@ @{var searchTerm = Request.QueryString["search"];} @{var results = ExamineManager.Instance.Search(searchTerm, true); } but i do not know how to limited this code that can search only in my document type. 回答1: There are couple of steps for this. You will have to: Create a

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:

IIS 7 rewrite rule and Url.Content issues

会有一股神秘感。 提交于 2019-12-10 20:31:35
问题 I have the following rule in IIS 7: <rule name="Category" enabled="true"> <match url="^store/([0-9]+)/(.*)" /> <action type="Rewrite" url="store?cid={R:1}" appendQueryString="false" logRewrittenUrl="true" /> </rule> Which seems to work fine, however in my ASP.Net MVC 3 app I have several @Url.Content("~/") entries which are resolving to /store/ as the root as opposed to /. A typical url would be http://mysite.com/store/99/coats-with-hoods for example. EDIT/UPDATE: I'm still pulling my hair