|
Written by Ken Task
|
|
Thursday, 15 September 2011 17:21 |
Why? There are some ISD's who are 1:1 with Macs that use Pages and other Mac specific software in their Moodles. May as well be 'fair'! :)
Interestingly enough, …
"Compatibility
"As of August 2010, Pages does not support OpenDocument file format. At the same time, Pages is restricted to Mac OS X only. While there is no program that can view or edit a .pages file using Windows or Linux, some content can be retrieved because a .pages file is actually a bundle. A user can open a .pages file in an unpackaging program, or by renaming files as .zip files in Windows (XP and onwards), and will find either a .jpg or .pdf preview in its entirety for viewing and printing, though only possible if the creator of the .pages file elected to include a preview. The user will also find a .xml file with unformatted text. This process can also be used for users of the 2008 version of Pages to open documents saved in the 2009 version of Pages, which are not backwards compatible. iWork can also export documents into a number of formats; unfortunately, formatting is often lost during the export process. There is no third-party converter available at this time that can change the file type and save the formatting. However, the Google Docs Viewer can open Pages files."
https://secure.wikimedia.org/wikipedia/en/wiki/Pages
Now the how-2:
Download to /var/www/icons/ directory: http://sos.tcea.org/apple-app-icons.zip
Download to /moodle/pix/f/ directory: http://sos.tcea.org/apple-app-icons.zip
and unzip the zips and changer permissions on all files: chown apache:apache *.png
In /moodle/lib/filelib.php of the Moodle, add the following:
'keynote' => array ('type'=>'application/x-iWork-keynote-sffkey', 'icon'=>'apple-keynote.png'), 'numbers' => array ('type'=>'application/x-iwork-numbers-sffnumbers', 'icon'=>'apple-numbers.png'), 'pages' => array ('type'=>'application/x-iwork-pages-sffpages', 'icon'=>'apple-pages.png'), 'webloc' => array ('type'=>'application/octet-stream', 'icon'=>'apple-keynote.png'),
You'll see a section of that file which include other such associations. It is alphabetical so insert appropriately (dunno if that really makes a difference, assuming it might).
Restart your apache web server.
Surf to a course that has .pages, or .numbers, or .keynote, or .webloc files in them and see if icons show.
One can also make these same associations in httpd.conf (on a typically installed CentOS server /etc/httpd/conf/) Add the following lines to the same section with similar definitions for icons:
AddIcon /icons/apple-pages.png .pages AddIcon /icons/apple-keynote.png .keynote AddIcon /icons/apple-numbers.png .numbers AddIcon /icons/apple-webloc.png .webloc
If you allow directory listing and have those types of files uploaded to a raw directory listing, surf to that directory and see if the icons show.
Or, try this URL: http://moodle.tcea.org/iconstest/ or try this: http://moodle.tcea.org/icons/ and look for the Apple specific icons.
'spirit of sharing' ... and being 'fair'!
|