From 5a47024032e7292ff147715a1f50098a331e5174 Mon Sep 17 00:00:00 2001 From: Carla Schroder Date: Fri, 22 Apr 2016 12:35:26 -0700 Subject: [PATCH 1/2] corrections to mimetype aliases page --- .../mimetype_aliases.rst | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/admin_manual/configuration_mimetypes/mimetype_aliases.rst b/admin_manual/configuration_mimetypes/mimetype_aliases.rst index 9a1ad9344..ac055afb9 100644 --- a/admin_manual/configuration_mimetypes/mimetype_aliases.rst +++ b/admin_manual/configuration_mimetypes/mimetype_aliases.rst @@ -1,21 +1,27 @@ -Mimetype aliases +================ +Mimetype Aliases ================ -ownCloud allows administrators to specify aliases for mimetypes. This makes it -possible to show more specific icons for certain mimetypes. Take as an example -audio files. It is nicer if they show a nice audio icon instead of the default -file icon. +ownCloud allows you to create aliases for mimetypes, so that you can display +custom icons for files. For example, you might want a nice audio icon for audio +files instead of the default file icon. -By default ownCloud is distributed with ``config/mimetypealiases.dist.json``. -Administrators should not modify this file, as it will be replaced when -ownCloud is updated. +By default ownCloud is distributed with +``owncloud/resources/config/mimetypealiases.dist.json``. +Do not modify this file, as it will be replaced when ownCloud is updated. +Instead, create your own ``owncloud/resources/config/mimetypealiases.json`` +file with your custom aliases. Use the same syntax as in +``owncloud/resources/config/mimetypealiases.dist.json``. -Adding custom aliases ---------------------- +Once you have made changes to your ``mimetypealiases.json``, use the ``occ`` +command to propagate the changes through the system. This example is for +Ubuntu Linux:: -Custom mimetype aliases can be added to ``config/mimetypealiases.json``, using -the same syntax as ``config/mimetypealiases.dist.json``. Some common mimetypes -that may be useful in creating aliases are: + $ sudo -u www-data php occ maintenance:mimetype:update-js + +See :doc:`../configuration_server/occ_command` to learn more about ``occ``. + +Some common mimetypes that may be useful in creating aliases are: image Generic image @@ -40,9 +46,3 @@ text text/code Source code - -Once you have made changes to ``config/mimetypealiases.json``, run the -following to propagate the changes through the system:: - - $ ./occ maintenance:mimetypesjs - From 646403fc178d0a03ba8d8f084adff1adfae07fea Mon Sep 17 00:00:00 2001 From: Carla Schroder Date: Mon, 25 Apr 2016 11:50:21 -0700 Subject: [PATCH 2/2] user config goes in owncloud/config --- admin_manual/configuration_mimetypes/mimetype_aliases.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin_manual/configuration_mimetypes/mimetype_aliases.rst b/admin_manual/configuration_mimetypes/mimetype_aliases.rst index ac055afb9..5829c2497 100644 --- a/admin_manual/configuration_mimetypes/mimetype_aliases.rst +++ b/admin_manual/configuration_mimetypes/mimetype_aliases.rst @@ -9,7 +9,7 @@ files instead of the default file icon. By default ownCloud is distributed with ``owncloud/resources/config/mimetypealiases.dist.json``. Do not modify this file, as it will be replaced when ownCloud is updated. -Instead, create your own ``owncloud/resources/config/mimetypealiases.json`` +Instead, create your own ``owncloud/config/mimetypealiases.json`` file with your custom aliases. Use the same syntax as in ``owncloud/resources/config/mimetypealiases.dist.json``. @@ -19,7 +19,7 @@ Ubuntu Linux:: $ sudo -u www-data php occ maintenance:mimetype:update-js -See :doc:`../configuration_server/occ_command` to learn more about ``occ``. +See :doc:`../configuration_server/occ_command` to learn more about ``occ``. Some common mimetypes that may be useful in creating aliases are: