sitecore

Exporting user permissions?

半腔热情 提交于 2019-12-23 15:41:24
问题 Does anyone know of any way to export user and role permissions, and then re-import them on another copy of Sitecore? I've had a search around, and bar writing a bit of code to do this, doesn't appear to be anything immediately available ... 回答1: The permissions are actually stored on the items themselves , not the Role or User objects. There are two ways to export the object like Stephen mentioned, perform the export/import on the item you granted/revoked access to, not the role or user. 回答2

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

In Sitecore 8, how can I add a new application to the Start Menu?

允我心安 提交于 2019-12-23 12:32:35
问题 We're using Sitecore 8.1 and would like to add a new app to the Start Menu: How can one do so? 回答1: The required steps are below: Switch to the 'core' database in the bottom-right selector Go to Sitecore → Content → Applications, and add a new application Go to Sitecore → Content → Documents and Settings → All Users → Start Menu, and add a new Shortcut to the Left or Right section Go to the new Shortcut, then switch to "Raw Values" mode (in the View tab) and add a link in the following format

Sortorder of Inherited Templates

一曲冷凌霜 提交于 2019-12-23 09:58:22
问题 Using Sitecore 6.6 we are constructing some templates that inherit many base templates. This is great for reuse and standardizing our code, as all the fields are stored in a constants file for easy reference. However, we seem to be unable to define the order that these inherited templates are displayed. The templates seem to be sticking to the original order they were added in no matter what. We've tried using the sortorder on the actual base templates themselves, but that doesnt appear to

How do I rebuild a custom Lucene index on a Sitecore content delivery server?

跟風遠走 提交于 2019-12-23 09:32:34
问题 The custom Lucene index on my Sitecore 6.2 Content Delivery server seems to be not right. So I think I need to rebuild all 3 of my custom indexes. How do I do that? Do I just have to use the shared source Index Viewer module? Right now I have that installed on my CD server, however for some reason it is not working. When I select my custom index in Index Viewer - nothing happens. So I can't rebuild the index that way. Can I just delete the index files from the hard drive? If so, how quickly

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

Sitecore Solr remove versions from index

天涯浪子 提交于 2019-12-23 08:29:31
问题 I’m using Sitecore 7 and the Solr Search provider. I currently have the site setup to update the search index when publishing an item. I’ve noticed that when the CMS author creates different versions of an item and then submits these into the index the previous version of the item is not removed from the index, so the index contains multiple versions of the same Sitecore item. Does anyone know of any settings, that I can change, to make sure that the previous version is removed from the index

Sitecore: Detect user in Page Editor mode

醉酒当歌 提交于 2019-12-23 07:49:51
问题 Can I know how to detect user is in page editor mode using code? This is because, I have a component, when user browses from page editor, it will search in master_index folder instead of web_index folder. 回答1: Please check with : if (Sitecore.Context.PageMode.IsPageEditorEditing) also is working on Sitecore 6.6, it not depends on Sitecore 7. Please check also this Sitecore blog post by Martina Welander. To check if is normal page use: if (Sitecore.Context.PageMode.IsNormal) To check if is

Updating Sitecore Social Profile into an external system

只谈情不闲聊 提交于 2019-12-23 03:59:10
问题 We are using the Sitecore Social Connected Module version 3.0 with Sitecore 7.5. Everything is working fine, in the sense that we log the user in and see the profile information stored into MongoDb. However, there is a requirement to also store the profile information into a separate system. I've successfully been able to do this by tapping into the following social module events: <event name="social:connector:user:loggedin"> </event> <event name="social:connector:user:socialprofileattached">

In Sitecore, how to change or set PageMode

断了今生、忘了曾经 提交于 2019-12-23 03:46:11
问题 In Sitecore, I have users who are using the editing ribbon to add content to pages. However, there are some pages that I want to prevent EditMode completely from that user's role. This is based off of a branch template, so I can't just revoke privileges for each page. I need some way to set the Sitecore.Context.PageMode to be Normal. Is there an API for setting the PageMode? 回答1: While I was unable to find a C# API, I did find that I could just use a URL Redirect that looks something like