Template1 is the default template automatically assigned to applications (see Chapter 3, “Developing Applications”). This system-assigned template is the value specified for the DefaultTemplateName property in the global.properties.xml portal configuration file, which is located in %UnwiredAccelerator70%\tomcat\webapps\onepage\config if you are using Tomcat, %JAGUAR%\Repository\WebApplication\onepage\config if you are using EAServer.
You can change the default to any template you want. For example, if you want every application to use the same header logo or footer, you can create a template with the logo, and enter that template’s name in global.properties.xml.
When you change the template name in global.properties.xml,
the new default template is used by all resource IDs in Mobile Web
Studio.
Changing the default application template
Create and save a new application template using the instructions in “Choosing a template type”.
Use any text editor to open global.properties.xml.
Search for DefaultTemplateName and replace the value “Template1” with the name of the aggregated application template you created.
Save the file.
Restart the application server.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |