Global and Personal Bookmarks
3112_100822_7.png

Note: Updated Nov. 20, 2013 to follow format of the External App Template functions and to comply with v12.0.062 feature to eliminate cross site scripting vulnerabilities.
Also added new feature to allow for different global sites for different groups of users.

In a previous document, you were provided with a solution for presenting classic FirstClass Bookmarks in an external application.  However, there is currently no way to add new bookmarks to your Bookmarks folder.
This application will do two things.
1.  Allow the administrator to create a set of Global Bookmarks that are presented to groups users of the application and
2. Allow each individual user to add to the list (and edit and delete) their own set of bookmarks.
6613_20901_5.png
This is done by first loading the set of global bookmarks from a file stored on the web server and then checking a field on the application form where the user stores their own personal items.  In both cases, the list of items are stored as JSON data.

The the Global Sites list is a javascript file that can be any name you choose but should end in the extension '.js'
The file needs to contain your list of global bookmarks that you will make available to the group of users for whom the instance of the installed application will be made available.  See below for how to create and install differerent instances.

Download the Source Code
For this application, we can run it in an iFrame delivered from our Internet Services (or any web server)
As we did with the Calculator application
1. Download GlobalBookmarks.zip and expand it to extract the full Global Bookmarks folder.
2. Inside that folder you will find a GlobalBM.js file containing the list of your global bookmarks.  This is a sample of what your global site list must be.  The name of the file will be entered in the configuration form.

var Bookmarks = [
   {
       "Site": "FirstClass Web Site",
       "URL": "http://www.firstclass.com",
       "Description": "OpenText FirstClass Web Site"
   },
       {
       "Site": "YouTube",
       "URL": "http://www.YouTube.com",
       "Description": "YouTube Web Site"
   },
       {
       "Site": "Google",
       "URL": "http://www.google.com",
       "Description": "Google Web Site"
   }
   
]
You can edit this list and add to it if you like.  Each item within the Bookmarks array is javsacript object with three pairs of information containing the Site, the URL and Description for the bookmark.

3. Once edited, upload this entire folder to your ExtAppSource folder as described in the Calculator document in this section.
You can create multiple versions of this type of file and upload them all to your web server.

Installing the Application
1. Follow the instructions in the Installing External Apps section to create a new external application document.
2. Name your application Global Bookmarks (or any other name you choose)
3. Set the dimensions to
6613_21852_6.png
4. Add the names of the groups to which you wish the application to be made available.
11202013_21240_0.png

5. Enter the name of your global site list file that you wish to apply to the group specified above
11202013_21315_1.png
6. Click the image at the right to open it in a new window, then save as icon.png and attach it to the formicon1.png
7. In the body of the document, paste the following html snippet.

NOTE:  You can install additional instances of this application and change the group and global site lists names to offer different global sites to different groups of users on your system.

NOTE: If you are running FCWS with an SSL certificate, recent changes to both Chrome and Firefox require that your web server hosting your external application also have an SSL certificate installed.
<iframe width = "100%" height = "100%" src="https://www.yourserver.com/ExtAppSource/GlobalBookmarks"></iframe>