Adding resources  Copying resource-specific files

Chapter 4: Resources

Editing the cobrands.xml file

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:

  1. Navigate to the cobrands directory:

    Tomcat:

    SYBASE\tomcat\webapps\onepage\fw\cobrands

    EAServer:

    SYBASE\EAServer\Repository\WebApplication\onepage\fw\cobrands

  2. 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.

  3. Navigate to the config directory:

    Tomcat:

    SYBASE\tomcat\webapps\onepage\config

    EAServer:

    SYBASE\EAServer\Repository\WebApplication\onepage\config

  4. 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.

  5. In the section you copied, update the information to reflect the new resource. Enter:

    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>

  6. Save and close the cobrands.xml file.





Copyright © 2005. Sybase Inc. All rights reserved. Copying resource-specific files

View this book as PDF