Global Office Directory
More Products
Share this page
Home > Community > Technical Blogs > Dev Sitecored > Loaf - A collection of Presentation Layer Examples
I was recently on a long intercontinental flight with little to do and thought I was probably long overdue for a blog post. Alex Shyba once said on his blog that if you get asked about something more than twice you should blog about it, with that in mind the question I get a lot is "Can you show me how to just create a Breadcrumb?". So in response here are 6 different examples of Breadcrumbs using our various presentation layer options.
The 6 presentation layer examples are:
If you'd like to have a look at any in isolation I'd recommend just downloading the package and unzipping it manually. Otherwise follow the instructions below to install all 6 on a blank copy of Sitecore.
Disclaimer: These examples are purely as examples of the many and various ways you can create page controls in Sitecore, they are not in any way intended to be seen as best practices or a comment on which is the "best" system to use. That said I welcome such discussion (inline code! hardcoded GUIDS! Gasp!) in the comments section and in fact look forward to it ;)
Install instructions:
Step 1) Install MVC http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=1491 Step 2) Install blank copy of Sitecore 6.5 Step 3) Switch AppPool to .NET 4.0 Step 4) Install the Razor For Sitecore module: http://trac.sitecore.net/RazorForSitecore Step 5) Make sure you include the web.config changes for the Razor module Step 6) Install the Loaf package Step 7) Add to web.config: <pages validateRequest="false"> <namespaces> <add namespace="Loaf.Helpers"/> </namespaces>
- Craig Sisk October 19, 2011 at 8:19 AM
- Serafina Frongia October 19, 2011 at 8:41 AM
Steve's blog showcases the extensability of Sitecore and how it can be maximised to its fullest potential.
This website is designed to be fully functional with scripts disabled in browser. Please contact the webmaster for any suggestions