Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [commands]

For questions related to Sitecore commands, including the configuration, implementation, use and troubleshooting of both native and custom commands

Filter by
Sorted by
Tagged with
1 vote
2 answers

Custom popup / Sitecore client

I've requirements to create a custom popup, everytime the author saves an item. The popup has text and two buttons Proceed or Cancel. Any guidelines on how this can be done?
Jose's user avatar
  • 63
1 vote
1 answer

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

In my content item, I have a field called "MyField." Additionally, the workflow comment has its own field called "MyField." I am wondering if it is feasible to automatically ...
Shiva's user avatar
  • 379
1 vote
0 answers

Can a Sitecore LaunchPad button open a XML dialog or trigger command which opens up SheerUI dialog

I want to open a dialog (sheer-ui) on click of launchpad button. Tried following Link with no luck. is there a way to wire up click of launchpad button to call a command ? I can do similar via a ...
FHN's user avatar
  • 441
0 votes
1 answer

How to update height and width of the Sitecore progress box

We have a custom command to sync some items with Sitecore. Sitecore progress box is used to perform the job and at the end we have to display the errors or warnings if any. Sitecore progress box is ...
Anjali Prathipati's user avatar
0 votes
1 answer

How to add custom ribbon button in Experience Editor

I am currently using a custom Ribbon Button which has a command attached to it in the Content editor. I want to create the same ribbon button in experience editor mode and use the same command.
Gautam Aneja's user avatar
0 votes
1 answer

Rename and move item to proper bucket, programatically

Is there a way to move an item in a bucket (based on some rules) after it has been renamed? Basically the following behaviour is wanted: Rename the item If bucket exists ---> move it there ...
iusmar's user avatar
  • 239
0 votes
1 answer

Trigger a Sitecore Command on a Modal link item

I am working on a Dashboard Popup in Sitecore in which I display list of several items. And I want to know if I can trigger a sitecore command link the "item:load" to focus on the Content ...
Jovit Mayo's user avatar
2 votes
1 answer

Should targetHostName and hostName be the same?

In our Sitecore 9 setup we are using a CD and CM server. Currently, we have these config transformations: <sites env:require="TestCM" xdt:Transform="Insert"> <site name="website"> ...
Hos's user avatar
  • 884
2 votes
2 answers

Error messages in ProgressBox background job

I am creating a custom command and want to handle exceptions in a userfriendly way, i.e. display an errormessage. This is the code for my command: public class ImportCommand : Command { private ...
Hos's user avatar
  • 884
0 votes
1 answer

How to refresh a selected item on a custom menu click

I have a custom menu written to copy the item language version to another language. The current behavior is - when I click on the menu it copies the current language version to another language ...
Sanjay's user avatar
  • 13
0 votes
0 answers

Sheer UI OnLoad Method to run another method to Dynamically Change UI Text

I am currently working on a custom DialogForm that will display a progress status based on a particular number of Sitecore Job Progress running in the background and dynamically updating the UI part ...
Jovit Mayo's user avatar
2 votes
1 answer

Run Selected Pipeline Batches Command as Admin User

I have a pipeline batch which sync external data into Sitecore items. I extend RunPipelineBatchCommand to run as admin user, default is running as Context.User: protected override User ...
Vlad Iobagiu's user avatar
  • 18.6k
-1 votes
1 answer

Experience Editor rendering context

We are creating some custom buttons on the ribbon of a rendering in the experience editor that when clicked will trigger custom events listed in the commands.config. The command executes just fine, ...
Chris Bartlett's user avatar
3 votes
1 answer

Sitecore task for multilingual site in single node

I have a multilingual site with single node approach. Requirement is simple, need to create a task to fetch all items and generate a XML file. I have created a Sitecore scheduled job and command and ...
Gowthamaraja Eswaramoorthy's user avatar
9 votes
1 answer

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

I have a situation where a rendering could use a set of customization buttons that are all related. Rather than filling up the rendering's edit frame, I'd like to add a button that can expand into a ...
zzzzBov's user avatar
  • 873
1 vote
1 answer

Download File In Command

I'm writing a command that should end up downloading a file for the user who clicks the button associated with the command. SheerResponse.Download requires a file and there doesn't seem to be an ...
Teeknow's user avatar
  • 2,477
5 votes
2 answers

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

In my example, Sitecore PowerShell Extensions (SPE) patches the command in order to provide insert options. Reviewing the ShowConfig.aspx I see the following: <command name="item:new" type="...
Michael West's user avatar
  • 18.2k
7 votes
2 answers

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

Our customer had a request for possibility to copy or duplicate an item without a previous language versions. Only the latest versions have to be created. Check my solution on http://sitecore-masters....
Dalibor Srutek's user avatar
1 vote
2 answers

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

I have a custom field type in Sitecore 8. I use the Context.ClientPage.SendMessage to call the contenteditor:save command. This works, but forces the page to reload producing a warning dialogue to ...
john pedra's user avatar
11 votes
4 answers

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

How do I show an error style dialog (i.e. with red error logo and the expand text) from a content editor command? I've tried to use SheerResponse.ShowError(). The content editor greys out like it ...
Matthew Dresser's user avatar