110 likes | 225 Views
Templates. a discussion about creating reusable basic template sets. Nick Airdo Software Engineer Central Christian Church Email: nick.airdo@cccev.com Twitter: @ airdo. Topics. Number of templates in a set Standard content areas (aka panes) Standard names of content areas
E N D
Templates a discussion about creating reusable basic template sets Nick Airdo Software Engineer Central Christian Church Email: nick.airdo@cccev.com Twitter: @airdo
Topics • Number of templates in a set • Standard content areas (aka panes) • Standard names of content areas • CSS for styling and layout • Structure
Standard Content Areas? • Makes moving your pages from one template to another easier • Will probably want a few different standard layouts (this will make your template more appealing/usable)
Basic Layout Top Left Center Right Bottom
Template Settings • You can create “settings” but… • They should only be of render type textbox • Template settings are actually set on “page” instances, not the template.
Template Settings? • Template settings are actually set on a “page”, so… • Hardcode into template: BasePage.AddCssLink(Page, "~/Templates/Cccev/Liger/css/wide-page.css"); • Or try using a module that injects a particular style sheet
Demo • See Templates\Custom\RC\2010 • http://localhost/Arena/default.aspx?page=3418&refreshcache=true • http://localhost/Arena/default.aspx?page=34&pageid=3418&tab=PageDetails
It’s in the Style • Use the style sheet to control • Layout • Width • Color • Images
Template Import/Export • Perhaps in the future Ask Later
Number of Templates • This depends highly on your design & layout • Home Page • Sub Page • Wide Page • Unless your templates are “full” width you’ll want a wide one for certain ‘public’ Arena modules
Suggested Structure Templates\Custom\<ORGID>\<SetName>\ <Template1Name>.ascx <Template2Name>.ascx css\ js\ img\