- Create a new layout of the same name via the Content Editor.
- Overwrite the aspx file generated in step 1 with your layout. Copy over aspx.cs and designer files too.
- Copy other files (fresh dll's, css's, images, and so on).
- Create the device via the Content Editor. Usually specify a query string (device=mobile). Save!!
- Associate item template, device, and layout via Content Editor: templates -> UserDefined -> Item Template -> Std Values -> Presentation ->Details -> Edit Device -> select layout. Save!!
- Do a sitewide smart publish.
- Enjoy! (after waiting out the cache, that is)
Wednesday, December 15, 2010
Adding a per-device layout in Sitecore
Sitecore lets you render an item differently for different devices (i.e. rss, mobile, etc.). Once you've developed the layout, here are the steps for moving it to acceptance or production:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment