The cobrands.xml file defines the active resources for your portal installation. When you add a new resource, you must manually add the resource information to cobrands.xml:
Navigate to the cobrands directory:
Tomcat:
SYBASE\tomcat\webapps\onepage\fw\cobrands
EAServer:
SYBASE\EAServer\Repository\WebApplication\onepage\fw\cobrands
Create a new folder using this naming format:
resource_name-resource_ID
where resource name is the name entered when you created the resource in Mobile Web Studio, and resource ID is the portal-assigned identification number. For example: newResource-211.
Navigate to the config directory:
Tomcat:
SYBASE\tomcat\webapps\onepage\config
EAServer:
SYBASE\EAServer\Repository\WebApplication\onepage\config
Open cobrands.xml in any text
editor and copy an existing <CobrandDef>
section
and paste it below the last <CobrandDef>
section
in the file before the </Cobrands>
tag.
For example, copy and paste the Sybase section.
In the section you copied, update the information to reflect the new resource. Enter:
Rid – the resource ID generated by Mobile Web Studio; for example, 211.
Name – the resource name; for example, newResource
.
Dir – the directory you created for the new resource where you copy the resource-specific files; for example, /fw/cobrands/newResource-211.
Charset – the character set you want the resource to use.
EmailCharset – the character set you want the e-mail application to use.
EmailerSetting – indicates whether the Mobile Web Studio sends an e-mail message to the user when you create a new account. A setting of “1” indicates send an e-mail message; a setting of “0” (zero) indicates not to send a message.
If you do not have an SMTP server, or if you do not want an e-mail message to be sent, set the value of emailerSetting to “0.” An e-mail message is written to the WorkRoot\email directory.
The value of the WorkRoot property is specified in the global.properties.xml file (typically x:\tmp); see the WorkRoot entry in “Global property group” for additional information. The email file name is the e-mail address of the user.
Your entry should look similar to this:
<CobrandDef rid='211' name='newResource'
dir='/fw/cobrands/newResource-211'
charset='ISO-8859-1'
emailCharset='ISO-8859-1'
emailerSetting='1'
>
</CobrandDef>
Save and close the cobrands.xml file.
Copyright © 2005. Sybase Inc. All rights reserved. |