Tag Archives: sitecore

Sitecore iframe validation

According to the XHTML 1.1 specifications, iframes are deprecated and should be replaced by object tags. Sitecore validation correctly fails on any pages with iframes. Unfortunately, there are some edge cases where object tags do not always work (IE8, I’m … Continue reading

Posted in it | Tagged , | Leave a comment

Check Sitecore item presentation

There are many times when I’ve had to implement business logic that depended on whether or not Sitecore items had presentation details set. For example, in a site-wide page search, it wouldn’t make much sense to return links to items … Continue reading

Posted in it | Tagged , , , | Leave a comment

Removing Sitecore preview ribbon language

When previewing a Sitecore item, there’s an option in the ribbon to change the language. For whatever reason, Japanese was a given option in the Sitecore installation I was working on. The only language needed for the Sitecore project was … Continue reading

Posted in it | Tagged | Leave a comment

View currently logged in users in Sitecore

Depending on how many concurrent sessions your Sitecore license allows, you may or may not have seen the message:┬áThere are too many users using the system at this time. From this page, clicking on “Kick User” will display a list … Continue reading

Posted in it | Tagged | Leave a comment

Passing properties into Sitecore sublayouts

I’ve run into multiple situations where I’ve wanted to reuse most of a Sitecore sublayout/control with only one or two differences in the control’s properties. For example, ┬áthis has happened when I have chunks of markup that are entirely identical … Continue reading

Posted in it | Tagged , , , , | 2 Comments

Sitecore FieldRenderer class attribute

I spent hours trying to figure out how to set the class attribute of images rendered with the Sitecore FieldRenderer. Unfortunately, the CssClass attribute does not work on the FieldRenderer control as it does on the Image WebControl. Long after … Continue reading

Posted in it | Tagged , , , | Leave a comment

Sitecore current date in preview mode

To access the currently selected DateTime in the content editor’s preview mode, instead of checking the query string, use

Also, be sure to check if the page is in preview mode first. In my case, I had a presentation … Continue reading

Posted in it | Tagged , , , | Leave a comment