You are here

README.txt in Simplenews Content Selection 7.2

Same filename and directory in other branches
  1. 8 README.txt
  2. 7 README.txt
ABOUT
--------------------------------------------------------------------------------

Simplenews Content Selection allows you to select already created content to
assemble in the body of a newsletter (provided by the Simplenews module)
content type.


INSTALLATION
--------------------------------------------------------------------------------

Enable the module, you'll need to have Simplenews too.


HOW DOES IT WORK
--------------------------------------------------------------------------------

This module provides an action "Create newsletter" in the content administration
form located at admin/content/node.

Check some content in this form, choose the "Create newsletter" action and you
will be provided a sorting form along with the option to create a Table of
Contents.

When validating, you will be redirected to a newsletter creation form with the
body field already filled in.


CONFIGURATION
--------------------------------------------------------------------------------

You can configure the module at admin/config/services/simplenews/settings/scs
you can change the default view mode (which is the one provided vy SCS) used
when generating the output of nodes selected on newsletter creation.

When multiple content types are flagged as newsletter content types, you can
select which content type to generate when using SCS. This is hidden by default
as the "Newsletter" content type is the only one by default.


OVERRIDING OUTPUT
--------------------------------------------------------------------------------

The output generated and placed in the body is built from the view mode set in
the module configuration.

You can override the Drupal way in your theme, for exmplae by specifying a
custom template for this view mode.

If you add this in the template.php file of your theme:

  function YOURTHEME_preprocess_node(&$vars){
    // Add template suggestions based on view modes
    $vars['theme_hook_suggestions'][] = 'node__' . $vars['view_mode'];
    $vars['theme_hook_suggestions'][] = 'node__' . $vars['view_mode'] . '__' . $vars['type'];
  }

You will be able to create a node--scs--article.tpl.php that will be taken into
account after flushing the theme registry and when creating a new newsletter.

You can also override the Table of Contents output by implemeting a function in
your template.php file: function YOURTHEME_scs_toc($variables) {}


VIEWS INTEGRATION
--------------------------------------------------------------------------------

The Simplenews Content Selection Views Integration is a submodule that provides
an action for Views Bulk Operations (VBO), it also provide a default view that
you can enable using Views UI.

If you want to create your own VBO view, add a field "Bulk operation: Content"
and select the action "Create newsletter". Note that the enqueue and skip
confirmation options will have no effect as you will be redirected to
newsletter creation form automatically after sorting.


CONTRIBUTORS
--------------------------------------------------------------------------------

SebCorbin http://drupal.org/user/412171 (current maintainer)

This module was sponsored by Makina Corpus (http://www.makina-corpus.com).

File

README.txt
View source
  1. ABOUT
  2. --------------------------------------------------------------------------------
  3. Simplenews Content Selection allows you to select already created content to
  4. assemble in the body of a newsletter (provided by the Simplenews module)
  5. content type.
  6. INSTALLATION
  7. --------------------------------------------------------------------------------
  8. Enable the module, you'll need to have Simplenews too.
  9. HOW DOES IT WORK
  10. --------------------------------------------------------------------------------
  11. This module provides an action "Create newsletter" in the content administration
  12. form located at admin/content/node.
  13. Check some content in this form, choose the "Create newsletter" action and you
  14. will be provided a sorting form along with the option to create a Table of
  15. Contents.
  16. When validating, you will be redirected to a newsletter creation form with the
  17. body field already filled in.
  18. CONFIGURATION
  19. --------------------------------------------------------------------------------
  20. You can configure the module at admin/config/services/simplenews/settings/scs
  21. you can change the default view mode (which is the one provided vy SCS) used
  22. when generating the output of nodes selected on newsletter creation.
  23. When multiple content types are flagged as newsletter content types, you can
  24. select which content type to generate when using SCS. This is hidden by default
  25. as the "Newsletter" content type is the only one by default.
  26. OVERRIDING OUTPUT
  27. --------------------------------------------------------------------------------
  28. The output generated and placed in the body is built from the view mode set in
  29. the module configuration.
  30. You can override the Drupal way in your theme, for exmplae by specifying a
  31. custom template for this view mode.
  32. If you add this in the template.php file of your theme:
  33. function YOURTHEME_preprocess_node(&$vars){
  34. // Add template suggestions based on view modes
  35. $vars['theme_hook_suggestions'][] = 'node__' . $vars['view_mode'];
  36. $vars['theme_hook_suggestions'][] = 'node__' . $vars['view_mode'] . '__' . $vars['type'];
  37. }
  38. You will be able to create a node--scs--article.tpl.php that will be taken into
  39. account after flushing the theme registry and when creating a new newsletter.
  40. You can also override the Table of Contents output by implemeting a function in
  41. your template.php file: function YOURTHEME_scs_toc($variables) {}
  42. VIEWS INTEGRATION
  43. --------------------------------------------------------------------------------
  44. The Simplenews Content Selection Views Integration is a submodule that provides
  45. an action for Views Bulk Operations (VBO), it also provide a default view that
  46. you can enable using Views UI.
  47. If you want to create your own VBO view, add a field "Bulk operation: Content"
  48. and select the action "Create newsletter". Note that the enqueue and skip
  49. confirmation options will have no effect as you will be redirected to
  50. newsletter creation form automatically after sorting.
  51. CONTRIBUTORS
  52. --------------------------------------------------------------------------------
  53. SebCorbin http://drupal.org/user/412171 (current maintainer)
  54. This module was sponsored by Makina Corpus (http://www.makina-corpus.com).