Skip to main content
Share Your Experience: Take the 2024 Developer Survey
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
5 votes

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

I have decompile the Sitecore Code and below is an example how the popup appeared: This screenshot is from the Sitecore.Shell.Applications.Dialogs.Upload namespace So, you can make use of the Context....
Hishaam Namooya's user avatar
4 votes

How do you extend the item:new command without breaking a previous patch for it?

Not easily, no. Commands are bound to that identifier string (e.g. "item:new") and that's how they are identified across the system. You could override (replace) by inheriting the PowerShell ...
Mark Cassidy's user avatar
  • 25.3k
3 votes

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

try: Context.ClientPage.ClientResponse.Alert("Your error message");
jgondev's user avatar
  • 335
3 votes
Accepted

Custom popup / Sitecore client

I had the same requirement to create a custom popup on the Sitecore client that looks like this and here are some general steps you need to follow. Go to core database and open this path. /sitecore/...
Sumit Bhatia's user avatar
  • 5,095
3 votes

How to duplicate or copy item only with the latest language versions?

Here is an another example. What I am not happy that reflection and message collection are being used. But it can be as workaround for quick solution. Configuration: <sitecore> <...
Vlad Shpak's user avatar
  • 1,792
2 votes

Rename and move item to proper bucket, programatically

By default Sitecore eventhandlers are executed synchronously. I think in your case it depends on what you are trying to achieve in sitecore content/experience editor, if you need to have the change ...
Cristi Vulturar's user avatar
2 votes
Accepted

Trigger a Sitecore Command on a Modal link item

There may be a way to specifically trigger item:load. But I would probably look first to something simpler, like just generating a Content Editor URL for your item. http://yourhostname/sitecore/shell/...
Mark Cassidy's user avatar
  • 25.3k
2 votes
Accepted

Should targetHostName and hostName be the same?

targetHostName attribute is used to generate URLs from linkManager when SiteResolving is set to true. The host name to use when generating URLs to items within this site from the context of ...
scFootsteps's user avatar
  • 3,851
2 votes
Accepted

Error messages in ProgressBox background job

This answer from Tamas led me down the right path, so I will mark that answer as the solution. It seems that if you use job.Status.Failed = true together with job.Status.LogError("exception message"),...
Hos's user avatar
  • 884
2 votes

Error messages in ProgressBox background job

In the background the ProgressBox.Execute() is running the given method as a job where you don't have SheerResponse or ClientResponse. Try the following: add job.Status.Failed = true; when you ...
Tamás Tárnok's user avatar
2 votes

Run Selected Pipeline Batches Command as Admin User

It happens because the Run Selected Pipeline Batches Command uses different code to run a Pipeline Batch. I prepared a custom implementation of schedule command (unfortunately the existing command was ...
Artem Prashkovich's user avatar
2 votes

Experience Editor rendering context

You can follow the steps below to configure the custom button. Create your custom button in the path /sitecore/content/Applications/WebEdit/Custom Experience Buttons in core database. For example, ...
adarsh's user avatar
  • 818
2 votes
Accepted

Sitecore task for multilingual site in single node

If I had to implement such functionality, I would have created a schedule job only with below implementation public class XmlGenerator() { public string Database { get; set; } public string ...
Hishaam Namooya's user avatar
2 votes

Is there a way to create a custom experience button (or edit frame button) that opens a dropdown with additional experience editor buttons?

I found a clue but not an exact solution. I found that the this dropdowns are hardcoded in \sitecore\shell\Applications\Page Modes\ChromeControls.js. The related code is the renderDsSection. This ...
Tamás Tárnok's user avatar
2 votes
Accepted

Download File In Command

There is no current OOTB feature to download file via stream in Sitecore as far as I know. As Michael suggested in the comment above, you can use Sitecore Powershell. Another option is to save the ...
Hishaam Namooya's user avatar
2 votes
Accepted

How do you extend the item:new command without breaking a previous patch for it?

I finally found a solution, but required some light coding to get working. I've created a module for this solution in case anyone wants to do this without duplicating effort. Check it out here. The ...
Michael West's user avatar
  • 18.2k
2 votes

How to duplicate or copy item only with the latest language versions?

You can use for your requirement this module: https://marketplace.sitecore.net/Modules/S/Smart_Tools_Add_Version_and_Copy_Content.aspx?sc_lang=en a. It adds a new version to the selected ...
Vlad Iobagiu's user avatar
  • 18.6k
2 votes

Custom field type in Sitecore 8. After completing the command successfully, I'd like to enable the save button

To notify the Sitecore Client about changes in a custom field you have to call/override SetModified: protected override void SetModified() { base.SetModified(); if (base.TrackModified) { ...
Friederike Heinze's user avatar
2 votes
Accepted

Custom field type in Sitecore 8. After completing the command successfully, I'd like to enable the save button

This should solve your problem: Sitecore.Context.ClientPage.Modified = true;
Alan Płócieniak's user avatar
1 vote

Custom popup / Sitecore client

I would recommend creating a custom event within item:saving event, invoking a dialog processor in the client pipeline, and pass it a set of arguments. Create a custom event handler public class ...
Sumit Helaiya's user avatar
1 vote

Is it possible to prefill workflow comment template based on value of content item?

You could try creating a custom action I am not 100% sure if it would run before or after the comments dialog pops up... Validation actions run before, so guessing it would be fine. I havent tested ...
Dean OBrien's user avatar
  • 1,625
1 vote

How to add custom ribbon button in Experience Editor

I have implemented a custom button on the Experience Editor Ribbon. The requirement was to open a custom popup window by clicking on a button. So for this, I need to use Sitecore Rocks to create a ...
Sumit Bhatia's user avatar
  • 5,095

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