200 likes | 360 Views
Customizing Aspen Templates TEC04 Elizabeth Lucchese. Agenda. Introduction to templates Finding template names Using multiple templates per detail page Using template editor Block-based templates Form-based templates Exercises Questions and feedback. What is a template?.
E N D
Agenda Introduction to templates Finding template names Using multiple templates per detail page Using template editor Block-based templates Form-based templates Exercises Questions and feedback
What is a template? • Defines fields that appear on detail page • Defines layout of detail page • Can be as simple or complex as needed: • Course detail page • Student detail page • IEP form • Integrates with Data Dictionary • Powerful tool for customizing your Aspen system!
Agenda Introduction to templates Finding template names Having multiple templates per detail page Using the template editor Block-based templates Form-based templates Exercises Questions and feedback
Finding template names Context ID
Agenda Introduction to templates Finding template names Having multiple templates per detail page Using the template editor Block-based templates Form-based templates Exercises Questions and feedback
Agenda Introduction to templates Finding template names Having multiple templates per detail page Using the template editor Block-based templates Form-based templates Exercises Questions and feedback
Multiple templates Just need the same Context ID Templates Field Sets
How are templates created? • With XML (eXtensible Markup Language) • Templates are a series of <tags> • Similar to HTML – but easier! • Property tags identify Data Dictionary fields. • Layout is achieved by nesting property tags inside various layout tags. • New template editor makes this EASY!
Template editor Puts a graphical user face on the template writer
Ground Rules • Each template has a root data table: • Student • Staff • Course • Anything you can show on a field set can be displayed with a template. • Templates are associated with a navigation ID.
Block-based templates Tabs Cells Lines Row &Block Text
Result Demographics Student Details (First Name) (Middle Name) (Last Name) (Local ID) (State ID) (YOG) Block-based templates Source <template> <tab name=“Demographics”> <row> <block> <line> <cell><text>Student Details</text></cell> </line> <line> <cell><property id=“relStdPsnOid.psnNameFirst” /></cell> <cell><property id=“relStdPsnOid.psnNameMiddle”/></cell> <cell><property id=“relStdPsnOid.psnNameLast” /></cell> </line> <line> <cell><horizontal-rule /></cell> </line> <line> <cell><property id=“stdIDLocal” /></cell> <cell><property id=“stdIDState”/></cell> <cell><property id=“stdYog” /></cell> </line> </block> </row> </tab> </template
Block-based templates Other notable features • Shaded cells • Borders • Adjustable font sizes • Radio buttons • Checkbox views
Tab = primary-level layout Row = a row must contain at least a column or a block Template = Root Element Block = a block must contain at least one line, a free-form property Line = a line must contain at least a cell or text Cell = a cell must contain at least a property (field), text, an embedded list, etc.
Form Templates • More advanced template syntax • Allows more complex designs • Designed for modeling templates after paper forms • Currently used in the Special Education view • Can be used anywhere in the system