If you are passionate about testing automation in Sitecore, sooner or later you will want to mock Context.PageMode.IsExperienceEditorEditing (or Context.PageMode.IsPageEditorEditing in pre-Sitecore 8) properties. This post will give you step-by-step instructions on how to do that using Sitecore.FakeDb.
Posts Tagged ‘page editor’
Editable Dictionary Items
[su_note note_color=”#fafafa”]This blog post is a response to a question over at SDN (here). It’s a prototype of a solution, please use at your own risk and make sure you harden the code properly. I intentionally simplified it for the blog post. If I spend a little more time on it I will publish it […]
Dynamic Product Detail Pages. Part 1 – Page Editor
Scenario Your Sitecore site needs to display product detail pages. Maybe it’s retail, maybe it’s e-commerce, maybe it’s a catalogue with (or without) online sample orders, maybe it’s an inventory listing with inquiry forms, maybe it’s something else. The detail pages may have same look and feel for all products, may vary per category or […]
Chromes are sometimes fragile
Chromes Sitecore uses special markers – chromes – to tell apart placeholders, renderings, fields, and edit frames in the Page Editor. A chrome is server-generated and marks the beginning and the end of a potentially editable section. It also provides all the essential metadata for the client side scripts to rely on: The metadata for […]
Injecting Resources into Sitecore Content and Page Editor
What do you do when you need extra resources (JavaScript, CSS) brought into your Content Editor and Page Editor experience? Maybe you have developed a custom field type that requires Google Maps API. Maybe many of your renderings use an external library or a client side helper of your own when in IsPageEditorEditing(). Whatever the […]
Web Forms For Marketers, MVC, and the Sitecore Page Editor
It all starts with a series of problems – I want a Sitecore instance in MVC, I want to use Web Forms For Marketers (WFFM) with the MVC context, and I want my content authoring experience through the page editor to be straight forward. Well, thanks to this blog post from Chris van de Steeg, […]