sitecore

Can we assign more then one template ID in templateId (like we do in relatedId), while searching with Lucene?

萝らか妹 提交于 2019-11-29 16:52:19
I have Five check boxes Search All Template 1 Template 2 Template 3 Template 4 If user selects Search All , then simply we can pass index name and get result, if user selects one of template specific check box, again simply we can do by passing template name, but if any of two templates specific check box(or may be three) are checked, then? Can we pipe-separate templateIDs? You may need to change the method in the Advanced Database Crawler to handle the GUIDs of templates passed in. The SearchParam class has a property called TemplateIds which by being plural indicates it should allow more

Edit in Place CMS Suggestions [closed]

十年热恋 提交于 2019-11-29 15:20:26
I need to find a [very] easy to use (for editors/authors) CMS. Preferably with edit-in-place editing similar to SiteCore . We don't need something as huge and powerful as SiteCore though. Users need the ability to add pages (using set templates that we in development have provided), they also need the ability to add and editing content, with it being approved before publishing. Ideally we're looking for a .Net solution as our other web projects are .Net MVC - but PHP options are still ok. Many thanks. davivid I haven't looked at it for a while, but I thought Concrete5 had a lot of potential

How to sort/filter using the new Sitecore.Search API

独自空忆成欢 提交于 2019-11-29 15:20:08
问题 I couldn't find any way to do sort and filter using the new Sitecore.Search API. Lucene provides the following methods: Search(Query query, Filter filter) Search(Query query, Sort sort) Search(Query query, Filter filter, Sort sort) But I don't think Sitecore.Search API exposes these features. Am I missing something? Can someone please explain how to perform Filter and Sort with the new Sitecore.Search API? Or do I need to use the wrapped Searcher.Search(Query, Sort) to achieve this? I am

Open sitecore media library programmatically from asp.net button click

泄露秘密 提交于 2019-11-29 14:44:48
I have been trying to figure out if it is possible to open the Sitecore media library browser programmatically from ASP.NET code-behind on a server-side button click. By searching the net, I found an example which explained how to open a media library browser from a Sitecore thumbnail click. I tried this approach on ASP.NET server-side button click but it did not work failing with object reference not set to an instance of an object . Can anyone please help me if you know how to open the Sitecore media browser in a modal dialog via a server side button click? My code: protected void

Sitecore Glass Mapper always null

血红的双手。 提交于 2019-11-29 14:20:25
I am using Sitecore Glass Mapper for a new project I'm setting up. We are using Sitecore 7.2, latest version of Team Development for Sitecore (TDS) code generation and the latest version of glass. The code I am trying to execute: var b = new SitecoreContext(); var c = b.GetCurrentItem<T01_Homepage>(); b is not null. c is null. var d = b.GetItem<T01_Homepage>("path") d is null. I added my assembly in GlassMapperScCustom: public static IConfigurationLoader[] GlassLoaders(){ var attributes = new AttributeConfigurationLoader(new[] { "Company.Framework.Websites.Corporate", "Company.Framework.Core",

Sitecore Analytics: Trigger profiles and events from webservice

自闭症网瘾萝莉.ら 提交于 2019-11-29 14:18:12
问题 I have a problem with Sitecore.Analytics From my xslt, I do an ajax call to a webservice using jQuery. In my webservice I need to register/save some Sitecore.Analytics data. The problem is that I can't use Sitecore.Analytics.AnalyticsTracker.Current . So how do I do TriggerProfile and TriggerEvent ? I wonder if Sitecore.Analytics.AnalyticsManager could be to any help. 回答1: I recently encountered a similar scenario in having to track an analytics event within a webservice. As you noted, the

How to maintain Sitecore Lucene indexes in huge content delivery webfarm?

做~自己de王妃 提交于 2019-11-29 13:22:12
I know that Lucene indexes cannot be shared: Sitecore keeps a local copy of the Lucene index in the file system of each instance and does not support sharing the indexes between instances. Is it possible to xcopy Lucene indexes between CM and CD? Is there some other approach or recommendation to maintain a indexes in 30+ content delivery servers ? Update: I’m fully aware that CDs must kick off their own index update. With over 30 CD servers I’m thinking that maybe there will be a period of time that not all CD server have the same set of indexes. I’m afraid that for some reason the indexes

sitecore template standard values layout not updating all items, layout not loading

筅森魡賤 提交于 2019-11-29 13:04:34
i'm currently having a nightmarish moment with Sitecore. Basically my issues are two-fold: 1) the first time i added a standard value item to a template, and added a layout setup to it, i was thrilled, since all my items from that template were showing the layout, however now, certain items are now showing no layout at all. I tried doing presentation->layout, reset several times, but to no avail. 2) i added a new sublayout to the standard value layout to another placeholder, did publish on the template (republish everything, publish subitems), then publish on the standard values item again,

How to programmatically approve a content item in Sitecore

房东的猫 提交于 2019-11-29 11:31:11
Is there a way that I can programmatically approve a content item in Sitecore? Here's what you might want to do. Setup a checkbox per site that will allow admins to chose whether they want to use Awaiting Approval or not. An admin will simply check a checkbox to Skip Approval (Draft to Approved) or leave unchecked to maintain workflow (Draft>AA(Approve or reject)>Approved): In your workflow, under draft state verify that you have a submit command with next state assigned to Awaiting Approval. Under submit command create a SkipOver action. Create Class library project in VS, the output will be

Sitecore - System.Security.Cryptography.CryptographicException

ⅰ亾dé卋堺 提交于 2019-11-29 11:11:19
Hi and thank you for your help. We're trying to keep a Sitecore site up and running on a WS 2008 R2 Standard server but keep running into the following exception: System.Security.Cryptography.CryptographicException The site is set up to run in its own App Pool with the 2.0 framework version selected and integrated pipeline mode. The site will run fine for a few minutes but then the app pool ends up being stopped with the following details: "Application pool '######' is being automatically disabled due to a series of failures in the process(es) serving that application pool." Checking the