Sitecore Workflow Auto Publish Media Items

When you install a default Sitecore 7 instance, you will notice that there is a “Sample Workflow” already configured for you. The final step of this workflow has an “Auto Publish” action, which automatically publishes an item once it reaches the final step of...

Custom Sitecore Rich Text Editor Styles

One of the most important aspects of maintaining a WYSIWYG editing experience is to make sure that the CSS that is used for your website is the same CSS that is used for your rich text editor. In Sitecore, this is pretty easy to accomplish through configuration....

Sitecore Render Image with Glass Mapper

In Sitecore, since it handles the media items through media url, there are query string parameters to control the media item’s properties.  Below are some of them for images: w: Width in pixels h: Height in pixels mw: Maximum width in pixels mh: Maximum height in...

Dynamic Placeholders for Sitecore MVC

We all know that placeholders are an integral part of Sitecore, allowing us to add various components on a page that we have developed. You can even nest placeholders, so that a component placed in one placeholder can offer another placeholder that can house even more...

Automating Sitecore Builds using Jenkins

It is often an expensive task to manually publish both code and content for a Sitecore site manually to an integration environment. Usually, a person is assigned to be a “build master”, responsible for checking out and compiling code, making sure that everything works...

Using GlassCast for Sitecore Items

One very useful Glass Mapper method is called GlassCast. This method is essentially used to convert a regular Sitecore.Data.Items.Item into an Glass Mapper object that you have created. It’s really handy when you have issued queries in your code for certain...

Add Custom Classes to Sitecore WFFM

In the Form Designer property panel, there is an option “CSS Class ” for you to choose which css class to apply.  Shown as the screenshot below: You can add additional custom class names to this dropdown list by adding  Extended List Item to the following path:...

Disable Language Embed in Sitecore Links

Because Sitecore is a CMS that supports multiple languages, you may often notice that links generated from code have the language specified in the link (for example, ‘en’). If you don’t want the language embedded in generated links, you can disable that...

Sitecore WFFM Analytics

Sitecore’s Web Form for Marketers module comes with its own analytics, in addition to those provided by Sitecore. You can access those analytics by highlighting a particular form and clicking the ‘Form Reports’ button in the Content Editor ribbon. See the screenshot...

Permissions For Sitecore Page Editor

We are strong proponents of allowing content authors to perform all of their authoring tasks using nothing but the Page Editor. However, you have to be familiar with the permissions required to perform certain actions in the Page Editor. Here are some quick points on...

Workflow Permissions In Sitecore

I ran across an issue last week while working on a project. I had set up role based access to certain content items in the Sitecore tree, with inheritance for child items. However, I noticed that users that were members of that role did not have permissions to change...

Using Glass Mapper With Sitecore 7 MVC

Before we begin, the first question you may ask is: what is Glass Mapper? Simply put, it is an ORM tool. Traditional ORM tools (like NHibernate, or Entity Framework) connect to databases, and model classes in your Visual Studio project around objects that exist in...

Get Media Url From Sitecore Image Field

If you have a sublayout that needs to get the URL of a media item, such as an image (item[“Image”]), here is a quick tip on how you can get that media URL in Sitecore.   Item item = Sitecore.Context.Item; Sitecore.Data.Fields.ImageField imgField =...