sitecore

Find all the item that is using a common Sublayout in sitecore 6.2.0

我们两清 提交于 2019-12-05 08:30:58
Is it possible to obtain a list of all the items in sitecore that is using common sublayout or XSLT's in presentation tab for rendering i.e. suppose there is sublayout called layout1.ascx that is being used by 5 items.is it possible to obtain the list of all these 5 items by search method. Thanks in advance. Regards, Divya You probably need to do this in two steps (or one if it's only 1 template). You need to use the Link database. The simplest way of seeing these "links" is to go to the Sublayout or Rendering and go to the "Navigation" menu and then click on "Links". This should show you all

Set queryable source on Rendering Parameter Template field

你说的曾经没有我的故事 提交于 2019-12-05 08:21:33
I have a Rendering Parameter template applied to a sublayout. It has a single Droptree field on it, and I want to set the Source of that field to a Sitecore query so I can limit the options available for that field. Source can be: query:./* or query:./ancestor-or-self::*[@@templatename='MyTemplate']/ The query just needs to grab items relative to the content item that we're on. This normally works with Droptree fields in the content editor. However I'm finding that the query isn't working here because we're in the rendering parameters, so it's not using the content item as it's context. The

How do you configure Lucene in Sitecore to only index the latest version of an item on the master db?

坚强是说给别人听的谎言 提交于 2019-12-05 07:31:28
I recognise this is a moot point on the web database, so this question applies to the master db... I have a custom index set up in Sitecore 6.4.1 as follows: <index id="search_content_US" type="Sitecore.Search.Index, Sitecore.Kernel"> <param desc="name">$(id)</param> <param desc="folder">_search_content_US</param> <Analyzer ref="search/analyzer" /> <locations hint="list:AddCrawler"> <search_content_home type="Sitecore.Search.Crawlers.DatabaseCrawler, Sitecore.Kernel"> <Database>master</Database> <Root>/sitecore/content/usa home</Root> <Tags>home content</Tags> </search_content_home> <

Upgrading sitecore 6.6 index configuration to sitecore 7 (using ComputedFields)

六月ゝ 毕业季﹏ 提交于 2019-12-05 06:48:27
Sitecore CMS+DMS 6.6.0 rev.130404 => 7.0 rev.130424 In our project we have been using AdvancedDatabaseCrawler (ADC) for our indexes (specially because of it's dynamic fields feature). Here's a sample index configuration: <index id="GeoIndex" type="Sitecore.Search.Index, Sitecore.Kernel"> <param desc="name">$(id)</param> <param desc="folder">$(id)</param> <analyzer ref="search/analyzer" /> <locations hint="list:AddCrawler"> <web type="scSearchContrib.Crawler.Crawlers.AdvancedDatabaseCrawler, scSearchContrib.Crawler"> <database>web</database> <root>/sitecore/content/Globals/Locations</root>

Sitecore 7.2 - Item Web API-User Authentication

瘦欲@ 提交于 2019-12-05 06:27:29
I want to restrict the Sitecore Item Web API to send data to authenticated user only & as per the documentation,we need to pass the user name & password in http request header as X-Scitemwebapi-Username & X-Scitemwebapi-Password To achieve this,I used below code: HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://scapidemo.local/-/item/v1/?sc_itemid={110D559F-DEA5-42EA-9C1C-8A5DF7E70EF9}&sc_database=master"); request.Headers["X-Scitemwebapi-Username"] = "admin"; request.Headers["X-Scitemwebapi-Password"] = "b"; HttpWebResponse response = (HttpWebResponse)request.GetResponse();

Sitecore Search Predicate Builder multiple keyword search with boosting not working as desired

荒凉一梦 提交于 2019-12-05 05:39:18
I have sitecore pages / lucene documents with the following fields: Title Filename Content File Contents I'm creating a search for these and have the following requirements: Hits containing the whole phrase in the title field should be returned first. Hits containing the whole phrase in the filename field should be returned second. Hits containing the whole phrase in the content should be returned third Hits containing the whole phrase in the file contents should be returned fourth Hits containing all of the keywords (in any order) in the title field should be returned fifth Hits containing

Excluding items selectively from Sitecore's Lucene search index - works when rebuilding with IndexViewer, but not when using Sitecore's built-in tools

一曲冷凌霜 提交于 2019-12-05 05:17:45
On a site powered by Sitecore 6.2, I need to give the user the ability to selectively exclude items from search results. To accomplish this, I have added a checkbox field entitled "Include in Search Results", and I created a custom database crawler to check that field's value: ~\App_Config\Include\Search Indexes\Website.config: <search> <configuration type="Sitecore.Search.SearchConfiguration, Sitecore.Kernel" singleInstance="true"> <indexes hint="list:AddIndex"> <index id="website" singleInstance="true" type="Sitecore.Search.Index, Sitecore.Kernel"> ... <locations hint="list:AddCrawler">

Sitecore View Rendering and Controller Rendering Helper

霸气de小男生 提交于 2019-12-05 04:15:45
I have a sitecore application that use this method : @Html.Sitecore().ViewRendering("Path to the View") @Html.Sitecore().Controller("Controller Name", "Controller Action") This works perfectly fine even without I create an item for that rendering in Sitecore CMS Then what is the difference between that method with simple ASP MVC method : @Html.Partial("Path to the View") @Html.Action("Controller Name", "Controller Action") Both same or not? I feel little confused here @Html.Sitecore().ViewRendering("Path to the View") will trigger mvc.renderRendering pipeline. And your view will be rendered in

Sitecore Publishable flag makes it impossible to GetItem() from Master database

风格不统一 提交于 2019-12-05 03:52:42
I'm using sitecore 6.6.0 (rev. 120918). From the sitecore admin portal, I go and turn off the Publishable flag of an item (see image). After this, Sitecore.Data.Database.GetDatabase("master").GetItem("{itemID}") returns null . If I turn ON the Publishable flag again, GetItem() returns the correct item. What's the reason for this behaviour? Publishable setting controls the ability to publish to the Web database. Why does it effect the GetItem() API call to the master database? I've found a way around this for cases where you really need to read from the ContentDatabase (i.e. master database)

Sitecore text search in PDF or Word documents

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 02:53:23
问题 I want to find out if it's possible to configure Sitecore's Lucene search engine to index PDF or Word documents? I've looked on the Sitecore support site at this document (http://sdn.sitecore.net/upload/sitecore6/65/sitecore_search_and_indexing_sc60-65-a4.pdf) but it mentions creating a file crawler class which suggests to me that it's only possible to achieve this by writing custom code. If I do need to write custom code to do this, would I also need to have some API in order to extract the