26

When I was working on Sitecore 7.2 project long time ago, the fastest way was to serialize the single root item and then clicking Revert Tree on that item. All the descendants were gone and I had to remove only the last item manually. It worked in EventDisabler mode and it was much much faster than deleting items manually.


25

Sitecore supports two ways to render the Content Editor. Standard Sitecore Render Themed XML Skin Rendering The pipeline you want to focus on is <renderContentEditor>. You'll find the following: For the purpose of this answer, I'll focus on how to override the Standard Content Editor. I would probably advocate for using the Theme/Skinning ...


23

Sitecore Powershell Extensions is always the answer. There is a standard report available. More info here. But just in case you might want to try something else: Sitecore query : /sitecore//*[@__lock!='' and @__lock!='<r />'] This could take a while though.. Index query: (lock:true AND _latestversion:true) You could skip the latest version here if ...


22

In your command there is a QueryState method where you can hide or disable buttons. Return: CommandState.Hidden to hide the button CommandState.Disabled to disable the button CommandState.Enabled to enable the button An example is shown below: public class MyCommand: Command { public override void Execute(CommandContext context) { //main ...


21

This is another option you have if you want to use Sitecore PowerShell Extensions. Delete the items in a BulkUpdateContext - this disables events etc... an so makes the delete run a lot faster. To do that in SPE you can use this syntax: New-UsingBlock (New-Object Sitecore.Data.BulkUpdateContext) { Get-Item -Path master:/sitecore/Content/myItem | Remove-...


19

A safer method would be to use the DbBrowser. You can find this by going to <yoursiteurl>/sitecore/admin/dbbrowser.aspx. You will get a screen where the content tree loads up on the left and you get a raw view of fields on the right: This screen does not run any of the validation elements from the main content editor. It just browses the database ...


19

Maybe not an easter egg, but MainUtil class contains some "useful" methods like: My favorites: /// <summary>Returns false.</summary> /// <returns></returns> public static bool False() { return false; } /// <summary> /// Returns <c>true</c>. /// </summary> /// <returns></returns> public static ...


18

This seems like a perfect taks for Sitecore Powershell Extensions First of all I would get a list of template IDs to remove $templateIds = Get-ChildItem /sitecore/templates/you/better/know/where/to/look -Recurse | ? { $_.TemplateName -eq "Template" } Then you can search your other templates for inheritance Get-ChildItem "/sitecore/templates/...


16

I have previously found 2 secret CLI commands in Sitecore JSS: elephant-in-the-room: > jss elephant-in-the-room JSS CLI is running in global mode because it was not installed in the local node_modules folder. _.-- ,.--. .' .' / | @ |'..--------._ / \._/ '. / .-.- \ ( / \ \ ...


14

In my humble Opinion 3 is the best as it works out of the box, no modules required, no code required and what is more important you do not rely on LinkDatabase which can be sometimes outdated. Option 1 If you can use Sitecore PowerShell Extensions for that. Here you go, complete code snippet $item = Get-Item -Path "/sitecore/templates/Project/Playground/...


13

I found an older post on Sitecore fieldtypes and the way they are rendered in a blogpost. It's not the complete list, but a starting point: http://www.mtelligent.com/home/2014/8/29/sitecore-field-type-overview-reference.html


13

This is a known bug. I've seen it fixed in the 8.2 release notes. https://dev.sitecore.net/Downloads/Sitecore%20Experience%20Platform/82/Sitecore%20Experience%20Platform%2082%20Initial%20Release/Release%20Notes - reference 82835. Unfortunately, I've not seen any workarounds for your release. I suggest you get in touch with Sitecore support. Eventually, I ...


13

That is an indicator of the outcome of any field or item validators on the currently-loaded item. Green = All validators are valid Yellow = At least one validator is in warning state Red = At least one validator is in error state (validation is failing)


12

There's already answer to similar problem on Stack Overflow: https://stackoverflow.com/questions/21452260/sitecore-tree-list-datasource-versionexist In a nutshell, what you need to do: Create DataView which will be responsible for filtering non-existing items LanguageFilteringMasterDataView : MasterDataView Override method GetChildItems where you can filter ...


12

You can access Heartbeat.aspx via /sitecore/service/heartbeat.aspx url. Heartbeat.aspx checks if all your SQL databases configured in your connectionStrings config are accessible. I they are accessible, it just render empty response. If at least one of the databases is not accessible, it returns 500 Internal Error page and writes to the log file lines like: ...


12

Intro I'll be answering my own question here, since I know how to do this, but I wanted to share. Sitecore has an out of the box solution for creating custom notifications in the content editor. Sitecore also has a variety of rules that can be used to describe when this notification bar should appear, but if a condition for a rule you want to use does not ...


11

You don't need to set in this way DataSource, you just need to set DataSource on template field to : media library path (ex: "/sitecore/media library/Images/Social/Connector") When you will open you will see : One small issue that I remarked is Search tab is before Browse tab.


10

Here is an alternative answer if you want to or are using Sitecore PowerShell Extensions for your context menu. You can create a Context Menu script item in your SPE module and then using the Show if rules are met or not defined section of the Script item you can hide/show the menu based of a rule: Then you can write your PowerShell script to do whatever ...


10

As far as I remember, Sitecore 8 support for Sheer has been dropped in favour of SPEAK. Here you can find more information on how to convert a button from Sheer to SPEAK. In essence you have to use JavaScript for that and create a function according to the template below: define(["sitecore"], function (Sitecore) { Sitecore.Commands.YourCommandName = { ...


10

The Name Value List (and Name Value Lookup List which also inherits from it) only allows keys containing letters and numbers due to the Validate() method in Sitecore.Shell.Applications.ContentEditor.NameValue: if (!string.IsNullOrEmpty(input) && !Regex.IsMatch(input, "^\\w*$")) { SheerResponse.Alert(string.Format("The key \"{0}\" is invalid.\n\nA ...


10

The issue you reported was fixed in Sitecore Experience Platform 8.0 rev. 150621 (8.0 Update-4) and you can upgrade your solution to address the problem. Please take a look at the reference number 416281 in Sitecore CMS release notes on for additional details on the fix: https://dev.sitecore.net/Downloads/Sitecore%20Experience%20Platform/8%200/Sitecore%...


10

This is a known issue with the General Link Field. To fix it open the Core database and navigate too: /sitecore/client/Applications/Dialogs/InsertLinkViaTreeDialog/PageSettings/TargetsSearchPanelConfig In there, find the Filters section and then the Root field. Change the field to point at: /sitecore/client/Business Component Library/System/Texts/Targets ...


10

There's a straight-forward way to add an Insert button to the Edit Frame of components. Set Experience Editor Buttons Sitecore comes with some Custom Experience Buttons which can be added to renderings. To achieve what you want, add the Insert one to your rendering: When added, you'll see the icon appear in the Edit Frame of the rendering: Set the Insert ...


10

You could create a patch file that sets all the indexes strategies to manual, that would effectively disable any automated updates that might happen as a result of installing a package or other content updates. Something like this should give you a start. NOTE: I have not tested the patches or patched all the required indexes, but this should give you a ...


9

For those who can't upgrade to 8.2, sitecore support has provided a solution. I'll post the code here as I don't know a better way of sharing the library. As a reference Ticket number: 471609 | Sitecore Support - Bug #109428 Code provided contains 2 classes and a javascript change. LinkRenderer.cs overrides default RenderFieldResult method ...


9

I've used a multilist with search and just used a regex in the validate field to limit to choices to the field requirements know each case. Here is an example regex that limits zero to 5 items ^({[^}]+}|?){0,5}$ For zero to 1 item change the 0,5 to 0,1. To force one item set to 1,1. Src blog post by Ben Ramey


9

If the users just want to see their own locked items then they can see a list of all the items and unlock them all via the My Items options in the Ribbon:


9

Check that the users' Roles have access to the Languages they are attempting to edit. You can do this by opening the Access Viewer, selecting the role, and navigating to System/Languages. Don't just check the Read and Write settings, it's the Language Read and Language Write settings that control access to Items based on that language. If Language Write is ...


9

I've researched this a bit myself and come up with the following answer. If there's a better, more general way of answering this for every dialog, or if anyone has more specific information about how everything is set up please don't hesitate to answer! As of Sitecore 8.1 Update 3 (I'm not sure how many versions this is applicable for), a certain set of ...


9

It sounds like you have a matching item in /sitecore/System/Dictionary/. I did a quick test by adding a Dictionary item that matches the name of a field and the Content Editor picks it up.


Only top voted, non community-wiki answers of a minimum length are eligible