- Copy the Google Spreadsheet
- Publish it to web.
- Update
EbookAccess.config.request.url
to match the new Spreadsheet (Just change the id of the spreadsheet to the new one) - Change
EbookAccess.config.icon.directory
to match where you will upload the images. - Change
EbookAccess.config.icon.fileType
to match the desired format of the icons. - Upload
EbookAccess.js
to your preferred server. - Include the script in SFX.
- Run the script using
EbookAccess.initialize(language);
where language is the language code (two digit string) you're using in SFX, default available is swedishsv
and englishen
. This is probably easiest done through the SFX-templates.
For the script to work three files must match:
- The spreadsheet must follow the correct format with correctly named headings for example:
loantime
,loantimecommentswedish
,loantimecommentenglish
. - All the headings should be added to
EbookAccess.config.icons
- Add the corresponsing image of the icon to the directory defined in
EbookAccess.config.iconDirectory
.
- Google Spreadsheet
- Demo
- Zipped folder with Icons in pixel format
- [Zipped folder with Icons in vector format](//julius.hj.se/cdn/Icons (Vector).zip)