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 ...
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....
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 ...
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>
<...
3
votes
How do I display an error dialog from content editor command?
try:
Context.ClientPage.ClientResponse.Alert("Your error message");
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 ...
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/...
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 ...
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"),...
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 ...
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 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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)
{
...
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;
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 ...
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 ...
1
vote
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
commands × 19sheer-ui × 6
content-editor × 4
experience-editor × 3
scheduled-tasks × 3
sitecore-client × 2
ribbon × 2
multilingual × 1
pipelines × 1
workflow × 1
data-exchange-framework × 1
site-configuration × 1
buckets × 1
javascript × 1
custom-field × 1
urls × 1
workbox × 1
launchpad × 1
scheduler-job × 1