You can use many templates for an application. You also can orchestrate many components/ applications using this methods. You do this by adding 'TemplateSpaceHolder' xml element under 'page' root xml.
See below for your example:
<?xml version="1.0" encoding="UTF-8"?> <page name="NestMaint" id="NestMaint" > <processor PageSecurityCode="Page|NestMaint" HelpContext="LIGHTARMY-Applications.NestConfig" sOnlyTemplateFileName="NestMaint.html" CanPublic="false"> <PageSecurityCode> <Name>Nest Maintenance</Name> <Description></Description> <HelpContext>LIGHTARMY-Applications.NestConfig</HelpContext> </PageSecurityCode> <PageActionSelectionScript><![CDATA[ switch ((string)GetCurrentPageConfig('sForm')) { case 'NestMaint': CIISONLINE_NestMaint::NestMaintAction(GetCurrentPageConfig('sAction')); } ]]></PageActionSelectionScript> <TemplateProcessingScript><![CDATA[ CIISONLINE_Header::Menu_Show(); CIISONLINE_Footer::FooterForm_Show(); CIISONLINE_NestMaint::MenuPath_Show(); CIISONLINE_NestMaint::NestMaint_Show(); ]]></TemplateProcessingScript> <ResponseProcessingScript><![CDATA[ ResponseWrite (PrintVar('main')); ]]></ResponseProcessingScript> <IncludeFile>PageClass/Header.php</IncludeFile> <IncludeFile>PageClass/Footer.php</IncludeFile> <IncludeFile>PageClass/NestMaint.php</IncludeFile> <TemplateSpaceHolder name="Header">Header.html</TemplateSpaceHolder> <TemplateSpaceHolder name="Footer">Footer.html</TemplateSpaceHolder> <TemplateSpaceHolder name="Space01">Space01.html</TemplateSpaceHolder> <TemplateSpaceHolder name="Space02">Space02.html</TemplateSpaceHolder> <TemplateSpaceHolder name="Space03">Space03.html</TemplateSpaceHolder> <TemplateSpaceHolder name="Space04">Space04.html</TemplateSpaceHolder> <TemplateSpaceHolder name="Space05">Space05.html</TemplateSpaceHolder> <TemplateSpaceHolder name="Space06">Space06.html</TemplateSpaceHolder> <TemplateSpaceHolder name="Space07">Space07.html</TemplateSpaceHolder> <TemplateSpaceHolder name="Space08">Space08.html</TemplateSpaceHolder> <TemplateSpaceHolder name="Space09">Space09.html</TemplateSpaceHolder> <TemplateSpaceHolder name="Space10">Space10.html</TemplateSpaceHolder> </processor> </page>
No comments:
Post a Comment