English 中文(简体)
Umbraco 5: 搜索现场
原标题:Umbraco 5: site search

搜索Umbraco 5 站点有可行的方法吗? 我在XLST 搜索中读过很多东西,但是没有使用MVC3。 检查似乎也有点小问题,因为连后台都失去了V4中的搜索箱。 有什么想法吗?

最佳回答

如您所知 Umbraco V5 已退休; 您可以尝试4. x 并使用用户控制进行上述操作, 使用 umbraco 节点 工厂进行搜索逻辑 。

希望你了解我的观点

问题回答

我创造了一个非常基本的搜索, 它也许不是最好的方法,但它提供了我需要的结果。

var results = Hive.QueryContent().OfRevisionType(FixedStatusTypes.Published).ToList().Where(c => c.AllAncestorIds().Any() && c.Name.ToLowerInvariant().Contains(query.ToLowerInvariant()) && c.Attribute<bool>("excludeFromSearch") == false).ToList();

OfRevisionType(FixedStatusTypes.Published) returns published pages c.AllAncestorIds().Any() stops deleted items being returned





相关问题
Search field with Thickbox issue

i have a search form which is shown with Thickbox inside an iframe. the problem is.. that after i click "search" the result page is shown inside the same iframe! and i want it to be shown in the main ...

Will an incomplete google sitemap hurt my search ranking?

If I submit a sitemap.xml which does not contain all of the pages of my site, will this affect my search ranking? For example: If my sitemap only contained pages that had been created in the last ...

speeding up windows file search with C#

i made a program that search logical drives to find a specific file .if user type file name an click search button , searching begins , but i don t know how to stop searching in the middle of process....

JQuery/MVC Search Issue

I have inherited a piece of work where the entry screen shows a summary of 20 calculated variables. E.g. Var A (250), Var B (79). Clicking on any of these links takes the user to a view with a ...

Handling no results for docmd.applyfilter

I have an Access app where I use search functionality. I have a TextBox and a Search Button on the form, and it does a wildcard search of whatever the user enters in the TextBox, and displays the ...

Search by using the keyboard in a list/grid - algorithm

I need to implement a custom search in a grid and I would like to find some user interface guidelines that explain the standard way to implement it. I mean this kind of search that is initiated by ...

Embed Google/ Yahoo search into a web site or build your own

I am looking for an opinion on the whether to use Google custom search, Yahoo search builder or build my own for web projects (no more than 100 pages of content). If I should build my own - do you ...

热门标签