Convert Sitecore item into RenderingModel for MVC 2

WP Upload Directory not writable! Check file and directory permissions
Following code helps to add in item extension class or helper class to convert Sitecore item into Sitecore.Mvc.Presentation.RenderingModel. I have added code and extended in local Habitat Foundation project. public static RenderingModel AsRenderingModel(this Item item) { RenderingContext renderingContext = RenderingContext.CurrentOrNull; Assert.IsNotNull(renderingContext, "RendreingContext is null"); // get rendering var rendering = renderingContext.Rendering; Assert.IsNotNull(rendering, "Rendreing is null"); ...

Sitecore automate code generation using TDS T4 text template

WP Upload Directory not writable! Check file and directory permissions
Sitecore developers who are unaware of TDS code generation could be saving significant time and effort as well as reducing runtime errors (to compile time errors) and other type-safe coding benefits. Many developers are manually writing Field Name, Template Ids, Field Ids etc. As an example, template contains fields like Title, Text etc. Most of the time developers are ...

Customise Sitecore Rich Text Editor using Rules

WP Upload Directory not writable! Check file and directory permissions
Most sites require customised styles within Sitecore Rich Text Editor (RTE) so that the user can apply styles as needed. In Sitecore, that process is quite easy to implement. The developer is required to update settings either in web.config or by applying CSS classes into Sitecore default file, which is used by RTE. Now the ...

Configure insert options using Sitecore rules

WP Upload Directory not writable! Check file and directory permissions
In most Sitecore projects, the developer is required to set insert options to Sitecore item/content/page which will be used by Sitecore content users. In most cases developers have set insert options within the Sitecore template standard item (__Standard values). Nothing is wrong with doing that, but sometimes adding extra page can be a time consuming process, ...