You are here

README.txt in File Force Download 6.2

Same filename and directory in other branches
  1. 6 README.txt
  2. 7 README.txt
File Force
----------

Originally provided by Garrett Albright
Maintained by Martin B. - martin@webscio.net
Supported by JoyGroup - http://www.joygroup.nl


Installation
------------
 * Extract the module archive, copy its contents to your modules directory and activate the module.


Usage - Automatic
-----------------
 * File Force offers a number of additional formatters to the supported fields, which can be selected either in the
 "Display Fields" section of your content type or when adding fields to your view.

 * For more general templates, like the Upload module's attachment list, please consult the admin/settings/file-force
 page, where you can select the locations where you want File Force type links to be enabled by default.

   * Note that if your theme already overrides a particular function, selecting it there will have no effect!

   * So if you want to add File Force links to an already themed function, just copy the l() call from the
   implementation of the corresponding theme function in file_force.theme.inc.

 * The Image module offers to select types of links shown on the node page, which are extended by a File Force
 type for you.


Usage - Manual
--------------
 * With the "Private" download method enabled on your site in admin/settings/file-system: you can simply use the
 url() & l() functions with an additional item in the options array, e.g. url($image['filepath'], array('query'
 => array('download' => '1'))).

 * With the "Public" download method enabled by default, you will need to make sure that the File Force
 link is going through Drupal by passing it through file_force_create_url() first, e.g. l('linktext',
 file_force_create_url($image['filepath']), array('query' => array('download' => '1'))).
 
 * Setting 'download' to '1' will result in download being forced, while setting it to '0' will force the item to be 
 displayed inline.


Supported Modules
-----------------
 * FileField
 * Image
 * ImageCache
 * ImageField
 * Upload


For more instructions, please see this page in the Drupal manual:
http://drupal.org/node/265424

File

README.txt
View source
  1. File Force
  2. ----------
  3. Originally provided by Garrett Albright
  4. Maintained by Martin B. - martin@webscio.net
  5. Supported by JoyGroup - http://www.joygroup.nl
  6. Installation
  7. ------------
  8. * Extract the module archive, copy its contents to your modules directory and activate the module.
  9. Usage - Automatic
  10. -----------------
  11. * File Force offers a number of additional formatters to the supported fields, which can be selected either in the
  12. "Display Fields" section of your content type or when adding fields to your view.
  13. * For more general templates, like the Upload module's attachment list, please consult the admin/settings/file-force
  14. page, where you can select the locations where you want File Force type links to be enabled by default.
  15. * Note that if your theme already overrides a particular function, selecting it there will have no effect!
  16. * So if you want to add File Force links to an already themed function, just copy the l() call from the
  17. implementation of the corresponding theme function in file_force.theme.inc.
  18. * The Image module offers to select types of links shown on the node page, which are extended by a File Force
  19. type for you.
  20. Usage - Manual
  21. --------------
  22. * With the "Private" download method enabled on your site in admin/settings/file-system: you can simply use the
  23. url() & l() functions with an additional item in the options array, e.g. url($image['filepath'], array('query'
  24. => array('download' => '1'))).
  25. * With the "Public" download method enabled by default, you will need to make sure that the File Force
  26. link is going through Drupal by passing it through file_force_create_url() first, e.g. l('linktext',
  27. file_force_create_url($image['filepath']), array('query' => array('download' => '1'))).
  28. * Setting 'download' to '1' will result in download being forced, while setting it to '0' will force the item to be
  29. displayed inline.
  30. Supported Modules
  31. -----------------
  32. * FileField
  33. * Image
  34. * ImageCache
  35. * ImageField
  36. * Upload
  37. For more instructions, please see this page in the Drupal manual:
  38. http://drupal.org/node/265424