2022 Developer Survey is open! Take survey.
26 votes
Accepted

Editable Sitecore fields with Glass

This should give you what you want: @using (Html.Glass().BeginRenderLink(Model, m => m.MyLinkField, null, true) { @Html.Glass().RenderImage(Model, m => m.MyImageField, null, true) }
user avatar
  • 2,608
19 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 ...
user avatar
16 votes
Accepted

Editing Content in Experience Editor in Multi-site configuration

In multi-site solutions, when you edit an item in the Experience Editor, Sitecore will by default resolve the site context using the value of the setting Preview.DefaultSite. It's located in Sitecore....
user avatar
16 votes
Accepted

Copy final layout to shared layout

I wrote a PowerShell cmldet for merging Final Renderings back into Shared Renderings. function Merge-Layout { [CmdletBinding()] param( [Parameter(Mandatory = $true,Position = 0,...
user avatar
16 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 ...
user avatar
16 votes
Accepted

Experience Editor Support in JSS (headless)?

As long as your app is capable of server-side rendering (SSR) then you can render it in a Sitecore Content Management (CM) role and use Experience Editor (EE) to manage the app and content for the app....
user avatar
  • 2,225
14 votes

Does Page Editor run on master or web database?

Answers here are a good start but the database the page/experience editor is using is configurable in the <site name="shell"> node of this website. On Sitecore 8.0 and older, in your web.config ...
user avatar
14 votes
Accepted

Component not showing as an option to add to a placeholder?

Ensure that the component (either the sublayout, view rendering item or the controller rendering item) has it's "editable" checkbox checked.
user avatar
  • 1,304
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/...
user avatar
  • 24.3k
13 votes
Accepted

Where is shared and final layout in the security Editor

The minimal out of the box sitecore role that gives you such capabilities(considering no overrides were done) is sitecore\Sitecore Client Designing If you need to assign a role to your own custom ...
user avatar
  • 762
12 votes
Accepted

Some Experience Editor icons are missing after upgrade to 9.0 Update 1

Well, now it's working all of a sudden after having spent most of the day on this... What I've done recently is run the Clean up databases from the Control Panel and rebuild the link database and the ...
user avatar
  • 3,215
11 votes
Accepted

Does Page Editor run on master or web database?

The page editor (a.k.a Experience Editor) is used to edit content, so it uses the master database.
user avatar
  • 1,890
11 votes
Accepted

"Replace Rendering" in Experience Editor disabled

The replace button doesn't appear on Experience Editor in 2 cases : When rendering doesn't have any renderings or sublayouts in Complatible Renderings field. When Renderings or sublayouts are not ...
user avatar
  • 17.7k
10 votes
Accepted

Item not found when saving page in Experience Editor

So it's took me all of yesterday and most of today to figure this out. In the end it was nothing to do with my code or configuration at all. The log files showing some errors were a Red-Herring and ...
user avatar
10 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 ...
user avatar
  • 4,114
10 votes
Accepted

Why is 'Create New Content' disabled

This is normal behaviour if you didn't set Datasource Template for your rendering. If you don't set the template is it normal to not enable that button because you don't know what kind of template ...
user avatar
  • 17.7k
10 votes
Accepted

Personalization conditions switching doesn`t work in Experience Editor

This is an issue for Sitecore XP 9.1.0 (Initial Release). It is not reproducible in the Sitecore 9.0.x and pre-release version of Sitecore 9.2. If you need a hotfix for Sitecore 9.1, you can request ...
user avatar
  • 2,974
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 | ...
user avatar
  • 1,752
9 votes
Accepted

Experience Editor does not work from LaunchPad (if sc_resolvelanguage=1)

I'll gather information from the comments and post them as a community wiki since not everyone is reading the comments and answer is always an answer. This issue might occur if there are multiple ...
9 votes
Accepted

Dictionary items editable in experience editor?

As jammykam has said above I'm not aware of any OOTB way of doing this, despite dictionaries being part of Sitecore for quite some time. I spoke to a friend who has implemented this and I thought ...
user avatar
9 votes
Accepted

Automatically create data source's for controls when user adds page from experience editor

What you want to do is take advantage of Sitecore's branching functionality. A branch in Sitecore is basically a prebuilt item tree that will be copied and inserted where you want it. It could be one ...
user avatar
  • 12.9k
8 votes
Accepted

Sitecore MVC - Controller Rendering - Experience Editing

Yes - you are using the Raw Value when you do @Html.Raw(Model.SampleItem.Text.Raw) - this bypasses the field renderer and so will not be editable in the Experience Editor. Instead of .Raw use ....
user avatar
  • 18.8k
8 votes
Accepted

Set Default Value of Ribbon Checkbox

The value of the checkbox is set on a per user basis and stored against their profile (which means it is remembered across sessions and browsers/computers). Force Field Validation to be Enabled To ...
user avatar
  • 13.6k
8 votes

Sitecore MVC - Edit Frame for treelist field

Stiecore have a few ways to enable content editing in the Experience Editor. This is not specific to treelist field but can be used for other fields as well like multi list etc. As alternative to ...
user avatar
  • 1,467
8 votes
Accepted

Could not load type 'Sitecore.Shell.Applications.WebEdit.Commands.WebEditCommand'

I think you should Try disabling .config file of any additional modules in your Sitecore instance. Since it's possible that some module is built by old WebEditCommand which was in Sitecore.Client.dll ...
user avatar
  • 1,949
8 votes
Accepted

Remove EDIT button in Navigation Bar

I believe the item you're looking for is here: /sitecore/system/Settings/Security/Policies/Page Editor/Navigation bar/Can Edit in the core database. By default, the Sitecore Limited Page Editor or ...
user avatar
8 votes
Accepted

Force shared layout in experience editor

http://jockstothecore.com/defaulting-shared-layout-editing-sitecore-8-1/ A simple setting is not available, but in the blog post above you can find code for a custom processor for the loggedin ...
user avatar
  • 19.1k
8 votes
Accepted

Why placeholder settings when you can bypass them?

Placeholder Settings are used if you want to restrict someone to add renderings on a specific part of a page on Experience Editor. For example, let's say your page layout homepage is divided into 3 ...
user avatar
  • 798
8 votes

DatasourceUsagesCount request slowing down Experience Editor

I agree with you, datasource count sometimes makes no sense. But from what I know there is no config which you could use to hide this functionality. You can remove this call by editing this file: ...
user avatar
8 votes

How do you render EditFrame programmatically in C#?

I was able to supply the view layer with EditFrame HTML by adding the opening and closing HTML markup into my MVC Model. HTMLHelper Step 1: Obtain access to HtmlHelper using your current context ...
user avatar
  • 1,059

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