Wednesday, October 28, 2015

Sitecore custom field validation rules

Out of the box there are a number of field validation rules which can be applied to template fields (for both item templates and rendering/sublayout parameters templates).

Sunday, October 4, 2015

Are you getting the most out of Sitecore?

Sitecore is a leader when it comes to web content management systems (for 6 years now they have appeared in the leadership quadrant in the Gartner Magic Quadrant for Web Content Management). In the growing (yet crowded) market that is web content management, to hold this position is a testament to Sitecore as a CMS and what it has to offer.

For existing Sitecore implementations, it can then be useful to explore the question Are you getting the most out of Sitecore? Perhaps the web site began with an initial like for like migration from another CMS, or a first stage where the goal was to get the site live (with marketing features added later). Whatever the reason, due to the sheer number of features available in Sitecore (which are ever expanding and improving), there is also the possibility that your website is not getting the most out of Sitecore. This post is going to look at some features available in Sitecore that can be used to meet your organisations goals, whether that be; higher sales volume, more leads, more engaged users, a better user experience and so on.

Friday, October 2, 2015

Creating RSS feeds of your Sitecore content

Sitecore allows you to create an RSS feed for any content item that you have on your web site. Common sections that are good candidates for RSS feeds are news/update items or blog posts, however creating feeds for other items is a simple way to expose the data to third party systems (company portal for example).

For example, if you had news content (that was based on a custom news template) you could create an RSS feed of the content using the following instructions:
  1. Create a folder in your content tree called "Feeds"
  2. On the feeds folder click "Insert from template" and select "RSS Feed" (available under /sitecore/templates/System/Feeds/)
    1. Under Items, select the parent item (where all of your news items are descendants)
    2. Under the Description field, enter a description of the RSS feed
  3. Under templates navigate to the template of your news item (the template which the descendants of the item selected above are of). Select the standard values and from the top ribbon select Presentation and then Design (feeds).
    1. From here you map a title, body and date field from the item template and save and close.
  4. Publish the web site, and navigate to the location of the RSS feed from step 2. You will now see an RSS feed. Please note that this will format correctly in Firefox and Internet Explorer, but will appear as XML in Chrome.

* If you have multiple templates under the item selected for the RSS feed, you will need to set presentation details for each template type. If you don't the item will not appear in the feed, this is also a good way of keeping any containers organizing the content (categories for example) from being displayed in the feed.