sitecore

Sitecore has no necessary permissions for reading/creating counters

我怕爱的太早我们不能终老 提交于 2019-12-03 05:41:17
In the Sitecore (6.6 v130404) log file there are so many "Sitecore has no necessary permissions for reading/creating counters." records being created. I have disabled the performance counters in the server. <!-- ENABLE COUNTERS Indicates if performance counters are enabled. Default value: true --> <setting name="Counters.Enabled" value="false"/> Log extract: (For every 6seconds this keeps updating the log) Heartbeat 19:07:33 WARN Sitecore has no necessary permissions for reading/creating counters. Heartbeat 19:07:39 WARN Sitecore has no necessary permissions for reading/creating counters.

Create link to Sitecore Item

旧巷老猫 提交于 2019-12-03 04:39:36
I know I have done this before but I can't seem to remember where or how. I want to create a link to an Item in Sitecore. This code: Sitecore.Data.Items.Item itm = Sitecore.Context.Database.GetItem(someID); return itm.Paths.Path.ToString(); Produces the following string: http://localhost/sitecore/content/Home/Item1/Item11/thisItem I would like to have this string instead: http://localhost/Item1/Item11/thisItem.aspx What is the correct way to get the path to the item? In this case I can't use a normal Sitecore link: Sitecore.Web.UI.WebControls.Link Mark Cassidy You're needing this one, assuming

When to definitely use SOLR over Lucene in a Sitecore 7 build?

前提是你 提交于 2019-12-03 04:38:06
My client does not have the budget to setup and maintain a SOLR server to use in their production environment. If I understand the Sitecore 7 Content Search API correctly, it is not a big deal to configure things to use Lucene instead. For the most part the configuration will be similar and the code will be the same, and a SOLR server can be swapped in later. The site build has faceted search page listing components on landing and on other pages that will leverage the Content Search API buckets with custom facets The site has around 5,000 pages and components not including media library items.

What is the difference between Sitecore's core, master, and web databases?

↘锁芯ラ 提交于 2019-12-03 04:38:04
What is the difference between Sitecore's core, master, and web databases? I recommend you look at the Launch Sitecore site to understand more about the CMS. From the page on Sitecore Architecture : Master The Master database is the authoring database - it contains all versions of any content or assets. Core The Core database is all Sitecore settings, as well as the tables containing the .Net membership provider (i.e. users/roles contained in the Sitecore repository) Web The Web database is only the latest published version, and the content that is driving the live web site. Therefore it is a

Avoid removal of current Lucene.NET index during rebuild

偶尔善良 提交于 2019-12-02 23:34:45
I'm new to Lucene.NET but I'm using an open source tool built for Sitecore CMS that uses Lucene.NET to index lots of content from the CMS. I confirmed yesterday that when I rebuild my indexes, the current index files wipe clean so anything that relies on the index gets no data for about 30-60 seconds (the amount of time for a full index rebuild). Is there a best practice or way to make Lucene.NET not overwrite the current index files until the new index is completely rebuilt? I'm basically thinking I'd like it to write to new temp index files and when the rebuild is done have those files

dbo.TempGetStateItemExclusive3 called repeatedly

天大地大妈咪最大 提交于 2019-12-02 22:09:19
I am investigating a problem with our website that uses SQL server to manage sessions. The website is asp.net webforms based around the sitecore CMS. We have the same code in various environments e.g. QA, staging, and production. In production, what we are seeing is, periodically, we get a rapidly rising CPU usage that does not correlate in any way to traffic to the server. Along with this cpu spike, we are seeing a corresponding spike in network I/O. Our monitoring software does not differentiate between traffic out to the internet and traffic to the DB server; however, what we are seeing on

Run code when Publishing Restriction is saved in Sitecore

不羁岁月 提交于 2019-12-02 19:24:33
问题 I need to run code when an author saves a publishing restriction for an item. How would I go about doing that? 回答1: The time restrictions are stored in the "__Valid to" and "__Valid from" fields. Attach a new pipe like this: <event name="item:saved"> <handler type="Test.ValidTest, Test" method="OnItemSaved" /> </event> And then test if those fields changed and do your thing: public class ValidTest { private static readonly ID __Validfrom = new ID("{C8F93AFE-BFD4-4E8F-9C61-152559854661}");

Sitecore Solr Search Score Value

社会主义新天地 提交于 2019-12-02 17:09:24
问题 I am trying to get the score value for each returned result item but the problem is all items returned the same score value. I am using sitecore 7.2 site which was upgraded from sitecore 6.6. I am using solr version 4.10.2-0 The following is the code that I am using: var contentPredicate = PredicateBuilder.True<customSearchResultItem>(); contentPredicate = contentPredicate.And(p => p.Content.Matches(SearchKey.Boost(1.0f))); IQueryable<SearchResultItem> query = context.GetQueryable

Sitecore enables accessing child node around parent

爱⌒轻易说出口 提交于 2019-12-02 16:00:56
问题 I have a sitecore multisite setup. i'm currently struggling with the "duplicate content syndrome" were google bots indexes my sites and is able to access the content of the opposite site. this means it finds the same content on 2 different hostNames which gives the sites a lower rating in a google search. The reason it finds duplicate content is that i am able to access a child node on the oppsosite site than the one i'm currently browsing by typing the name in the URL. This is my web.config

Sitecore Solr Search Score Value

时光总嘲笑我的痴心妄想 提交于 2019-12-02 12:20:38
I am trying to get the score value for each returned result item but the problem is all items returned the same score value. I am using sitecore 7.2 site which was upgraded from sitecore 6.6. I am using solr version 4.10.2-0 The following is the code that I am using: var contentPredicate = PredicateBuilder.True<customSearchResultItem>(); contentPredicate = contentPredicate.And(p => p.Content.Matches(SearchKey.Boost(1.0f))); IQueryable<SearchResultItem> query = context.GetQueryable<customSearchResultItem>().Where(contentPredicate); var hits = query.GetResults().Hits; foreach (var item in hits)