Hot answers tagged

5

TLDR You have data source items that contain broken links. Long explanation: This error message occurs in the experience editor under the following conditions: Your item is in the final workflow stage. You have renderings that are pointing to data source items that don't exist. You have the "Associated Content" checkbox checked in the "View" tab in the ...


5

Just move /sitecore/content/Applications/Content Editor/Ribbons/Ribbons/Default/My item to the first position under its parent node. As Jason mentioned, this will affect all the users who use Content Editor. You can do this by either setting the value of the Sortorder field to e.g. -1000: Or by using First button: or by simply drag and dropping your item ...


4

The values for this are stored in the registry per user. Below is an example on how to modify the data with Sitecore PowerShell Extensions (SPE). $ribbonCommands = "{D33A0641-9F1C-4984-8342-0655C3D0F123}|{EDA2F1DC-0412-45B2-9FDD-0700B03F28CB}|{93F6C3FE-B36E-4083-BA48-19DE43F19F49}" $registryKey = "/Current_User/Ribbon/My Strip" <# Current_User is ...


4

The contextual ribbon is controlled by the Ribbon field on the template of the item you are on. So for images, it would be on either the /sitecore/templates/System/Media/Unversioned/Image or /sitecore/templates/System/Media/Versioned/Image (also could be on the Jpeg templates - depending on the type of image you uploaded). Those ribbon bars are defined in ...


4

Looks like is a "bug" but you can change in other way the icons and is much easier. Select the template/item which you want to change the icon. Click on the icon from the middle of content editor. A new popup is open with all icons. You can choose category and icon.


3

If you would like to avoid changing core Sitecore templates, you could consider another approach and adding a contextual right-click action to the item. That way it wouldn't matter what ribbon loaded because you would always have the right-click option available. Outlined here: https://cardinalcore.co.uk/2014/08/20/simple-sitecore-tip-right-click-publish-...


2

You can solve this by introducing Progress Window. Break your Execute method into two separate methods like below. Execute method: public override void Execute(CommandContext context) { Assert.ArgumentNotNull(context, "context"); if (!context.Items.Any()) { return; } Item item = context.Items[0]; try { ...


2

The reason why on Page Load it does not trigger the JavaScript is because you need to set the PostponedCall value to false Using Sitecore Rocks, on the rendering SmallCheckButton, view the Properties window and scroll down up to the Event Section. Then, in the field PostponedCall, set the value to false. A screenshot is provided below: Your JavaScript ...


2

As you have specified in your comment, clearing the cache from the cache.aspx page, fixed the issue. The reason why even clearing the cache from the code is not working is because the Context.Site is not the correct one. The Context.Site at this point is equal to login. You should clear the cache for the shell. namespace CustomLogin { public class ...


2

There's a few things required to create the button and hook it all up in order to fire an action. The simplest way is to make a copy of an existing checkbox and make modifications (i.e. one from /sitecore/content/Applications/WebEdit/Ribbons/WebEdit/View/Show in core database). Then make sure the following is set: Update the Header and Tooltip field, these ...


2

This feels like a ton of hacking to pass some parameters. I opted to pass the ribbon id instead of individual field values because I ended up needing more parameters. Adding the id of the ribbon button to attributes: namespace Common.CustomSitecore.Speak.Controls { public class UpdateButton : Sitecore.ExperienceEditor.Speak.Ribbon.Controls.LargeButton....


1

As far as I see this is not really supported without hacking Sitecore. The LargeButton has his own .js and .cshtml which is collecting the properties from the core database. Exactly in the following folder: \sitecore\shell\client\Sitecore\Speak\Ribbon\Controls\LargeButton. If you have look in the LargeButton.cshtml then you can see it uses the LargeButton ...


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