You are here

HOWTO.txt in Scald: Media Management made easy 6

This is a quick'n'dirty guide, intended for developers, explaining
how to setup a Scald enabled instance.

I] Activate a bunch of modules that'll make the whole thing usable:
 o  Views
 o  DnD
 o  MEE
 o  Scald
 o  Scald DnD Library
 o  Scald Dailymotion (will provide quickly a bunch of video atoms for
    testing purpose)

II] Permissions:
  1 - Give every role that has the "access content" permission the
      "use scald" permissions
  2 - Go to Administer -> Content -> Scald -> Actions, and gives
      every listed role the Fetch and View actions
  3 - Go to Administer -> Content -> Scald -> Types, and for each
      of Audio, Video and Image, change the default actions
      bitstring to 5.

III] Atoms generation
  1 - Use the DailyMotion video search interface to search for a
      video an import it as your first atom
  2 - Add one or more automatic import at Administer > Site configuration
     -> DailyMotion imports
     (Suggestion: Type: Tag / Identifier: Drupal)
  3 - Go to cron.php to launch batch processing
  4 - If you have Views installed, a bunch of atoms should now appears
      at Administer -> Content management -> Scald -> Atoms

IV] Configure a Scald-enabled CCK Field
(Given as an example)
  1 - Edit a content type, go to Manage fields screen
  2 - Add a new field, of type Multimedia Editorial Element (MEE),
      choosing the only available formatter.
  3 - In the field settings, use the default settings except for the
      Scald Editor Context, that should be set to 'Editor representation'

V] Go to the node form, enjoy

Those instructions assume that you will be using Scald / MEE in a mode
where users can't edit the ressource options when its dragged into the
RTE, which is the safe choice.
*If* you're in a situation where you're sure that only trusted users will
have access to the input format, and you want them to be able to
change the ressource HTML output on a case by case basis, then you
should instead set the "mee_store_sas" variable to FALSE, and edit the
input filter to allow all the html tags that your atoms providers will
output. In this case, Scald won't alter the output unless the user
viewing the content doesn't have access to the included atom

By default, Scald assumes that all users should be registered as authors.
This can be turned off in settings.php, using

<code>
  $conf['scald_register_users_as_authors'] = FALSE;
</code>

This option should be set before Scald is first enabled. Switching this
option on or off after the module is first enabled can have unintended
consquences.

File

HOWTO.txt
View source
  1. This is a quick'n'dirty guide, intended for developers, explaining
  2. how to setup a Scald enabled instance.
  3. I] Activate a bunch of modules that'll make the whole thing usable:
  4. o Views
  5. o DnD
  6. o MEE
  7. o Scald
  8. o Scald DnD Library
  9. o Scald Dailymotion (will provide quickly a bunch of video atoms for
  10. testing purpose)
  11. II] Permissions:
  12. 1 - Give every role that has the "access content" permission the
  13. "use scald" permissions
  14. 2 - Go to Administer -> Content -> Scald -> Actions, and gives
  15. every listed role the Fetch and View actions
  16. 3 - Go to Administer -> Content -> Scald -> Types, and for each
  17. of Audio, Video and Image, change the default actions
  18. bitstring to 5.
  19. III] Atoms generation
  20. 1 - Use the DailyMotion video search interface to search for a
  21. video an import it as your first atom
  22. 2 - Add one or more automatic import at Administer > Site configuration
  23. -> DailyMotion imports
  24. (Suggestion: Type: Tag / Identifier: Drupal)
  25. 3 - Go to cron.php to launch batch processing
  26. 4 - If you have Views installed, a bunch of atoms should now appears
  27. at Administer -> Content management -> Scald -> Atoms
  28. IV] Configure a Scald-enabled CCK Field
  29. (Given as an example)
  30. 1 - Edit a content type, go to Manage fields screen
  31. 2 - Add a new field, of type Multimedia Editorial Element (MEE),
  32. choosing the only available formatter.
  33. 3 - In the field settings, use the default settings except for the
  34. Scald Editor Context, that should be set to 'Editor representation'
  35. V] Go to the node form, enjoy
  36. Those instructions assume that you will be using Scald / MEE in a mode
  37. where users can't edit the ressource options when its dragged into the
  38. RTE, which is the safe choice.
  39. *If* you're in a situation where you're sure that only trusted users will
  40. have access to the input format, and you want them to be able to
  41. change the ressource HTML output on a case by case basis, then you
  42. should instead set the "mee_store_sas" variable to FALSE, and edit the
  43. input filter to allow all the html tags that your atoms providers will
  44. output. In this case, Scald won't alter the output unless the user
  45. viewing the content doesn't have access to the included atom
  46. By default, Scald assumes that all users should be registered as authors.
  47. This can be turned off in settings.php, using
  48. $conf['scald_register_users_as_authors'] = FALSE;
  49. This option should be set before Scald is first enabled. Switching this
  50. option on or off after the module is first enabled can have unintended
  51. consquences.