Template1 is the default template automatically assigned to portlets (see Chapter 4, “Building Portlets”). This system-assigned template is the value specified for the DefaultTemplateName property in the global.properties.xml portal configuration file, which is located in %SYBASE%\EAServer\Repository\WebApplication\onepage\config\ on Windows and in $SYBASE/EAServer/Repository/WebApplication/onepage/config/ on UNIX.
You can change the default to any template you want. For example, if you want every portlet 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 Web Studio.
Changing the default portlet template
Create and save a new portlet 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 portlet template you created.
Save the file.
Restart the application server.
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |