sitecore7.2

Sitecore 7.2 - Item Web API-User Authentication

可紊 提交于 2020-01-13 09:55:50
问题 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

Sitecore Analytics

[亡魂溺海] 提交于 2020-01-06 04:30:20
问题 I am on 7.2 version and found that Sitecore.Analytics.Tracker.IsActive is false and Sitecore.Analytics.Tracker.Visitor.VisitorClassification is 0 Imp point to note here is that my Analytics is working for all admin pages but not for custom pages of my site Can some one please provide some suggestions Cheers LA 回答1: Your pages should have a VisitorIdentification tag, so that Sitecore will be able to collect tracking information. Please make sure you have got a correct tracking tag being set up

jwPlayer causes rendering not to load in Sitecore's Page Editor

故事扮演 提交于 2020-01-04 03:52:08
问题 I'm currently working on a rendering in Sitecore 7.2 (MVC) that will show a jwPlayer given a link to a video (either in the Media Library or from an external source, like YouTube). When I add the rendering (with a valid data source) through Presentation Details in the Content Editor everything looks fine, and works perfectly. The trouble that I'm running into right now, though, is that when I try to do the same thing from the Page Editor (with the exact same rendering and data source),

Sitecore Refresh Index

瘦欲@ 提交于 2020-01-04 02:39:08
问题 I am working on Sitecore 7.2 and using Lucene search, I have created few templates and pages and search is working fine, now I want to exclude few templates from the index, I have a custom crawler and that does remove the templates from indexes but index is not refreshed, I am using following code to update index foreach (Cache cache in CacheManager.GetAllCaches()) { //WriteLog(string.Concat(" Clearing Cache, name = ", cache.Name)); cache.Clear(); } //WriteLog("Clearing caching finished");

Sitecore EventQueue Table growing out of control

旧街凉风 提交于 2019-12-31 11:00:23
问题 We are having an issue with the EventQueue table growing very fast at times, up to 3k records a second, and never clearing records (30 million as of right now). Our environment has the following set up: Sitecore 7.2 4 CD servers and 1 CM server All four CD servers are load balanced. CD1 and CD2 are pointed to DB1 server CD3 and CD4 are pointed to DB2 server There are 2 Publishing targets (one for each DB) Merge Replication is setup for the Core db across all servers (CM, CD's) EventQueue is

Sitecore Glass Mapper always null

时光总嘲笑我的痴心妄想 提交于 2019-12-29 08:41:40
问题 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

how to customize publish action - sitecore

北城余情 提交于 2019-12-25 16:02:42
问题 I created a user in sitecore with 2 roles assigned to him i.e author and publisher When this user who is both author and publisher creates any content he shouldn't be able to publish it. Can i overwrite the publish action? check on the user who submitted the content and the roles he is assigned to and restrict him with a popup message or something like that? Any help is appreciated. Thanks. 回答1: Follow the below steps to write custom publish actions For customizing the publish action, Write a

How to get a Multilist with Search field to not display referenced items' version and language?

家住魔仙堡 提交于 2019-12-23 15:33:41
问题 We are using Sitecore 7.2 to build a new application, and making extensive use of the new Multilist with Search field. We would like to be able to turn off display of the listed items' versions and languages in the list fields. How do we do this? Thank you. 回答1: For sitecore 8 and above versions left part of multi-list field is filled by Ajax response from javascript file. Below line needs to be modified your requirements, which is in websiteRoot/sitecore/shell/Controls/BucketList/BucketList

Can't set workflow and workflow state properties on sitecore items

岁酱吖の 提交于 2019-12-23 08:55:05
问题 I am currently working on a project that requires me to set up a very simple sitecore workflow. I am running into some difficulties when modifying the existing items to use my new workflow. This is what i did: The workflow creates a new version when a contentmanager starts editing an item and publishes the item when the submit button is clicked. I added these workflow items to the standard values of my templates: The next step would be to set the workflow settings on the already existing

How do I bucket Sitecore items on something other than their creation date?

北战南征 提交于 2019-12-19 09:55:55
问题 I'm using Sitecore with DMS (Sitecore 7.2), and I'm setting up various controls on my layouts to pull content from different folders based on the users profile card. I'd like those folders to be "bucket" folders, since there'll be one folder for each profile card, and it'll be a bit unpleasant for authors to have to manually update all of these folders every time a new profile card is added. The "Developers Guide to Item Buckets and Search" says: by default, the items are organized according