Overview:
The user loads some material that uses a shared resource. The resources are not working on Veeva CRM for iPad.
Root Cause:
The system automatically creates a folder which links to the shared content in the zip file. Note the limitations when creating a zip file.
Solution:
There are limitations when creating a zip file:
- Content creators should use a standard structure to put the materials into the correct folder. The contents of the zip file are unzipped directly into a folder with the same name as the zip file name.
- The zip file should not have a folder inside of it with the same name as the zip file.
- The shared resources can be referenced at this path: ./shared/<folder structure inside the zip>.
- Zip files for content that refer to a shared resource key message should not have a 'shared' folder inside of them. It is overwritten by the symlink to the shared resource.
To correct this problem, compress the folder directly.
Example:
The shared resource is: cholecap_shared_resources.zip\css
The shared resource zip file and its contents are shown below:
cholecap_shared_resources.zip
images (folder)
cholecap_logo.jpg
js (folder)
veeva_javascript_library_v3.2.js
css (folder)
base.css
This is an example of how to reference the shared resource from a code editor:
<image src="./shared/images/cholecap_logo.jpg">
<script src="./shared/js/veeva_javascript_library_v3.2.js" type="text/javascript"></script>
<link href="./shared/css/base.css" rel="stylesheet" type="text/css">
Related Documentation:
CRM documentation: Using Shared Resources
Thank you