Skip to main content
33 votes
Accepted

What is the fastest way to delete thousands of items in the content tree?

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 ...
Marek Musielak's user avatar
  • 24.2k
26 votes
Accepted

How do I get my section icons in the Content Editor to show again?

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 ...
Pete Navarra's user avatar
  • 14.7k
25 votes

What is the fastest way to delete thousands of items in the content tree?

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 ...
Richard Seal's user avatar
  • 20.8k
23 votes
Accepted

Is it possible to get a list of all locked items?

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//*[@...
Gatogordo's user avatar
  • 20.3k
22 votes
Accepted

Enable Content Editor button depending on template type

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 ...
Szymon Kuzniak's user avatar
22 votes
Accepted

Deleting an Item with a null Template

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 ...
Richard Seal's user avatar
  • 20.8k
20 votes

Is there any easter egg in Sitecore?

Maybe not an easter egg, but MainUtil class contains some "useful" methods like: My favorites: /// <summary>Returns false.</summary> /// <returns></returns> public static ...
Marek Musielak's user avatar
  • 24.2k
18 votes
Accepted

How to delete data templates?

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/...
Szymon Kuzniak's user avatar
15 votes
Accepted

Is there any easter egg in Sitecore?

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 ...
Jean-François L'Heureux's user avatar
14 votes
Accepted

How can I find all usages of template in insert options?

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 ...
Alan Płócieniak's user avatar
13 votes
Accepted

List of built-in Sitecore Field Types

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-...
Bas Lijten's user avatar
  • 1,867
13 votes

GeneralLink field breaks in CE when using ampersand (&) in description

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/...
Mark Cassidy's user avatar
  • 25.4k
13 votes
Accepted

What is the Use of Heartbeat.aspx in Sitecore

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 ...
Marek Musielak's user avatar
  • 24.2k
13 votes
Accepted

Creating Custom Content Editor Warning Bar

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. ...
Tyler's user avatar
  • 161
13 votes
Accepted

What is this mysterious *green square* on my Content Editor?

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 ...
Dan Sinclair's user avatar
  • 5,465
11 votes
Accepted

Adding a new child item to a datasource for a rendering

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 ...
Kasaku's user avatar
  • 4,184
11 votes
Accepted

Set File datasource property to restrict start folder

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 ...
Vlad Iobagiu's user avatar
  • 18.8k
10 votes

How do I display an error dialog from content editor command?

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 ...
Szymon Kuzniak's user avatar
10 votes

Enable Content Editor button depending on template type

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 ...
Richard Seal's user avatar
  • 20.8k
10 votes
Accepted

Why Sitecore does not allow to use special characters in Name Value List field as a key?

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....
jammykam's user avatar
  • 13.9k
10 votes

Is it possible to get a list of all locked items?

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:
jammykam's user avatar
  • 13.9k
10 votes
Accepted

Exception thrown when trying to set General Link value

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 ...
Vlad Iobagiu's user avatar
  • 18.8k
10 votes
Accepted

In the "Select Media" dialog, where are the search facets defined at in Sitecore?

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 ...
Justin Laster's user avatar
10 votes
Accepted

Setting the target on an internal link field

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/...
Richard Seal's user avatar
  • 20.8k
10 votes

What is the fastest way to delete thousands of items in the content tree?

Another way to increase the speed of removing items is to skip the recycling bin. Here is an example in combination with using bulk update. New-UsingBlock (New-Object Sitecore.Data.BulkUpdateContext) ...
cjaube's user avatar
  • 101
10 votes

Is there a way to reference another database in Multilist with Search

Yes - in the source property of your field item, you can use the parameter DatabaseName to set the name. So you might have something like: DataSource=/Sitecore/Content/MySite/Subscriptions&...
Richard Seal's user avatar
  • 20.8k
10 votes
Accepted

Stop user from saving and publishing when a field is Empty

1) Publishing To stop publishing when field is empty, there is no OOTB functionality. One option how you can achieve it with minimal effort is to put item (template) under workflow and use below ...
Peter Procházka's user avatar
10 votes
Accepted

Config patch/hack to temporarily disable index update

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 ...
Richard Seal's user avatar
  • 20.8k
9 votes
Accepted

Validator bar not appearing for general link field

The question update is your answer. That's standard behaviour of Sitecore. You should also see red squares on the right top. There you can see all invalid fields as squares. It is not really visible ...
Tamás Tárnok's user avatar
9 votes
Accepted

GeneralLink field breaks in CE when using ampersand (&) in description

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 | ...
josedbaez's user avatar
  • 1,792

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