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 ‘Sitecore’
3 Things to Remember with Sitecore Multi-Site Configuration
Multi-sites in Sitecore are a useful way to host multiple sites on the same Sitecore instance. However, there are more steps than just adding your site into the <sites> section in the web.config. Below are 3 things that you should always remember to set in your configuration in a multi-site (or using a site name […]
Sitecore WFFM – View Compilation Error after Upgrade to 8.1
After fixing the controller not found exception following our client’s recent upgrade to Web Forms for Marketers 8.1, all of our forms continued to throw an exception on load: Compilation Error. CS0104: ‘Constants’ is an ambiguous reference between ‘Sitecore.Forms.Mvc.Constants’ and ‘SitecoreDemo.Constants’. Web Forms for Marketers installs several views and editor templates into your Sitecore installation at […]
Sitecore, URL Rewrites, and the “Failed” JS Dialog
Recently for our new public website, we encountered a bit of an issue with the Sitecore back-end that didn’t really have a descriptive error. In fact, there were a number of symptoms that were a bit unexplained but the most frequently encountered one was this “Failed” JavaScript dialog that would come up when expanding something […]
Sitecore WFFM – Controller Not Found after Upgrade to 8.1
We recently upgraded one of our clients from Sitecore 8.0 to Sitecore 8.1 and had to upgrade to Web Forms for Marketers 8.1 rev. 160304 as part of the upgrade. After upgrading WFFM, all of our forms started to throw the following exception: The controller for path ‘{{form path}}’ could not be found. The project has a custom Controller Factory that uses […]
Top Takeaways from a Sitecore xDB Cloud Configuration
We recently worked to help one of our customers set up xDB Cloud and had some great findings come out of the project. While the Sitecore documentation is very good in some areas, in some of the newer areas, like xDB Cloud, the documentation can be a little unclear or even lacking at times. Here […]
Sitecore MVC – Independent Experience Editor Views
I find that many of the components I develop in Sitecore need custom markup in the Experience Editor that shouldn’t be present on the live site. Although it’s possible to add this custom markup into my components’ views with @if (Sitecore.Context.PageMode.IsExperienceEditor), I prefer to keep branching logic out of my views as much as possible. Fortunately […]
Upgrading Sitecore – 8.0 update 4 to 8.1 update 2 – Walkthrough
Recently, I posted about issues that ran into during an upgrade of 8.0 update 4 rev. 150621 to 8.1 update 2 rev. 160302. That article is available here. That article did not cover the actual process of upgrading and I thought it may be beneficial to provide a walk-through of that. To start off, I went […]
Let Sitecore Power Your Blogging Platform
Blogging runs the gauntlet from personal to professional, and somewhere in the middle, it ends up being a great tool for engaging customers. In larger companies, it may seem challenging to juggle multiple blogs, find a common audience, and be a trusted voice to customers. With numerous blogging platforms available (with some great, others not […]
Coveo for Sitecore 4 Released!
Coveo released version 4 of their Coveo for Sitecore product today and we’re all very excited about this new release. We’ve been very impressed with the Coveo product as it brings enterprise-grade search capabilities to Sitecore as well as provide a bevy of connectors to other platforms. With this new release, Coveo has made a […]
Bringing Digital Experience to New Levels with Perficient Digital
Top of mind for most clients these days is how to use technology to digitally transform their business. And within this is the underlying current of always putting the customer first. Whether it is improving communication by moving Exchange to the cloud, or streamlining collaboration with SharePoint online – the end goal is to be […]
Sitecore – Null Value Exception When Opening Explore Mode
Sitecore 8 introduced a new Explore Mode option to the Experience Editor that allows content authors to test their digital marketing strategy by simulating visits to their site as different users. One feature that has been particularly useful for me is the ability to simulate different IP addresses to test GeoIP integration in components I’m […]