sitecore

Sitecore LinkManager.GetItemUrl() resolving to alias

旧时模样 提交于 2019-12-08 02:09:52
问题 I've created aliases for the home page of one of the local sites (and it's child pages) in my national website - and I can't figure out how this is happening. When someone lands on a local page, I have a control (cs file) that creates the local links (to the child pages) on the left hand side of the local web page. These links are derived from the Sitecore context (current item's content path). After I created the aliases for all of the pages in a local site, that's when I noticed this

How to maintain Lucene index availability during rebuild?

隐身守侯 提交于 2019-12-08 01:54:29
问题 When rebuilding indexes on a content delivery server, any components that search that index fail (blow up). How can I rebuild my index without causing the search components to be unavailable? Furthermore, is there a standard way to handle this? The code I'm using to perform the reindex on regular intervals: Sitecore.Data.Database db = Sitecore.Configuration.Factory.GetDatabase(DBName); Index index = db.Indexes[IndexName]; index.GetSearcher(db).Close(); index.Rebuild(db); To give a little

How to view all archived items in sitecore 6

有些话、适合烂在心里 提交于 2019-12-08 01:31:49
问题 i'm using Sitecore 6.5. I have 2 users that have the exact same role, say user A and user B. When i archived an item with user A, i can see the archived item in the user A archive manager but not in user B. How do i give access to the users so that they can see all archived items from all users without setting them as admin ? 回答1: The archive application is using the Sitecore.Data.Archiving.SqlArchive.GetEntries method to retrieve the archived items from the database and it filters the items

Sitecore 8.1 output cache not clearing

我的梦境 提交于 2019-12-07 22:40:52
问题 we have CA and CD on different servers hosted in Azure Web Apps written using ASP.NET MVC. I've added below so that output cache gets cleared upon publish end. <event name="indexing:end:remote"> <handler type="Sitecore.ContentSearch.Maintenance.IndexDependentHtmlCacheManager, Sitecore.ContentSearch" method="Clear"/> </event> However, the output cache doesn't get cleared and website content doesn't get updated. Any configuration that I need to do on top of above? Thanks. 回答1: You probably are

Is it possible to stop Sitecore from performing a publish operation?

主宰稳场 提交于 2019-12-07 21:52:22
问题 If I click "publish" on my entire content tree in the Sitecore Desktop, I will get the dialogue telling me how many items have been processed. Sometimes I know that this operation is going to take an extremely long time (e.g. an hour). There's no way to stop this process. Of course I can close the dialogue and continue using Sitecore, but the publish is still ongoing in the background. I cannot publish anything else until it has completed. Recycling the app pool will kill the publish, but it

How to include 3rd party code in separate versions in one project

佐手、 提交于 2019-12-07 21:23:55
问题 I've got an interesting problem on my hands and I can't quite figure out the right way of handling it. This is specific to sitecore, but I would imagine the fix to the issue would be one that could be applied to anyone that has multiple websites running different versions of a framework. Right now I have 3 separate websites running Sitecore as the framework and CMS for the sites. One website it running code from Sitecore 6.5, another is on 7.0, and another is on 7.0 but will be 7.2 soon

Query Sitecore Lucene-index with ContentSearch-API on DateTime-range

醉酒当歌 提交于 2019-12-07 19:22:57
问题 At this moment i'm working on a project to implement Sitecore 7.0 Update 2 In my data template i have this field called Begin Date and another one End Date. These two fields are created with the type 'Date' (not Datetime). So it shows a datepicker when i edit and create items and i've filed some items with dummy-content and with Begin and End date from last month and the current month. What i want to achieve is to get all the items within a selected month. My method contains a month and a

Escaping reserved words

痞子三分冷 提交于 2019-12-07 18:02:15
问题 Sitecore provides a way of escaping words within a Sitecore query that contain characters that they don't like. Such characters include hyphens and spaces. In the interest of simplifying my life, I wrote a simple helper function that would escape every part of a Sitecore query, and it worked fine for a while: public static string EscapePath(string path){ return Regex.Replace(path, @"([^/]+)", "#$1#").Replace("#*#", "*"); } (the Replace("#*#","*") is in there because Sitecore doesn't like it

How to solve a login/database missing error regarding Sitecore Training Website?

与世无争的帅哥 提交于 2019-12-07 17:58:49
问题 I get the following error while accessing the Sitecore Training Website. Server Error in '/' Application. Cannot open database "SiteCoreTrainingSitecore_Core" requested by the login. The login failed. Login failed for user 'sitecore'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Cannot

Sitecore users edit item creates new version

≡放荡痞女 提交于 2019-12-07 17:32:13
问题 In Sitecore, for all the users who do not have administrator privileges(Is administrator checkbox not clicked when creating the user) when they try to edit an item they have to select "Lock and Edit" option which would create a new version instead of editing the existing one. Is there a way I can make non admin users edit an item without creating a new version ? I am hoping whether this could be done using a user role. 回答1: Here is the code responsible for creating new versions while editing