Fake DB

PageContext item in Sitecore Fake DB + Unit test cases

I tried to set PageContext using  RenderingContext.EnterContext but didn’t work using (RenderingContext.EnterContext(new Rendering(), contextItem)) { I have set it using  ContextService.Get().Push(pageContext); Here is the code, which may help you using (Db db = new Db using (Db db = new Db { { new DbItem(“Test Item”, ID.NewID, ID.NewID) { new DbField(“Sample Field”) Read more…

By Praveen, ago
Sitecore

how to enable full rich text editor in sitecore

Add below paths in datasource location /sitecore/system/Settings/Html Editor Profiles/Rich Text Default /sitecore/system/Settings/Html Editor Profiles/Rich Text Full /sitecore/system/Settings/Html Editor Profiles/Rich Text IDE /sitecore/system/Settings/Html Editor Profiles/Rich Text Medium

By Praveen, ago
Sitecore

Sitecore : 404 Page Not Found and error page redirects : Custom Error Pages

There are many ways to implement this functionality in Sitecore. I have mentioned the below two ways Using default configuration and assigning custom page/ url to specific value Go to SitecoreSettings.config and where you can find settings related to ‘not found’ <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <settings> <!-- REQUIRE LOCK BEFORE EDITING Read more…

By Praveen, ago