You are here

README.txt in Hashtags 8

Same filename and directory in other branches
  1. 6.2 README.txt
  2. 6 README.txt
  3. 7.2 README.txt
  4. 7 README.txt
Hashtags module allows to use the hashtags for the content entities.

-- GETTING STARTED --

1. Install Hashtags in the usual way.
(https://drupal.org/node/895232)
2. Go to Administration > Help > Hashtags (admin/help/hashtags)
and check the pictures how to config and work with the module.

-- Simple configuration --

1. Administration > Configuration > Hashtags
(admin/config/content/hashtags/manager_form)
and click on "Activate Hashtags" button for the
corresponding content type (for example Content > Article).
2. Go to Article Create Form (node/add/article)
and create an article
Title: Test Article
Body: My #special content
and submit a form.

-- FOR DEVELOPERS --

$node = \Drupal\node\Entity\Node::load(18);
$body_value = $node->body->value;
$body_value .= "ddd ggg lll #ccc sss";
$node->body->value = $body_value;
$node->save();

This code will update body field of the node with nid = 18 and
will create/attach the 'ccc' hashtag to the 'field_hashtags' field.

-- UNINSTALLATION --

Hashtags module attaches Hashtags filter for Basic HTML and
Full HTML text formats that should be unattached manually
before uninstallation.

Go to Administration > Configuration >
      Content authoring > Text formats and editors > Basic HTML
      (admin/config/content/formats/manage/basic_html)
then uncheck Hashtags filter box and submit a form.

Go to Administration > Configuration >
      Content authoring > Text formats and editors > Full HTML
      (admin/config/content/formats/manage/full_html)
then uncheck Hashtags filter box and submit a form.

File

README.txt
View source
  1. Hashtags module allows to use the hashtags for the content entities.
  2. -- GETTING STARTED --
  3. 1. Install Hashtags in the usual way.
  4. (https://drupal.org/node/895232)
  5. 2. Go to Administration > Help > Hashtags (admin/help/hashtags)
  6. and check the pictures how to config and work with the module.
  7. -- Simple configuration --
  8. 1. Administration > Configuration > Hashtags
  9. (admin/config/content/hashtags/manager_form)
  10. and click on "Activate Hashtags" button for the
  11. corresponding content type (for example Content > Article).
  12. 2. Go to Article Create Form (node/add/article)
  13. and create an article
  14. Title: Test Article
  15. Body: My #special content
  16. and submit a form.
  17. -- FOR DEVELOPERS --
  18. $node = \Drupal\node\Entity\Node::load(18);
  19. $body_value = $node->body->value;
  20. $body_value .= "ddd ggg lll #ccc sss";
  21. $node->body->value = $body_value;
  22. $node->save();
  23. This code will update body field of the node with nid = 18 and
  24. will create/attach the 'ccc' hashtag to the 'field_hashtags' field.
  25. -- UNINSTALLATION --
  26. Hashtags module attaches Hashtags filter for Basic HTML and
  27. Full HTML text formats that should be unattached manually
  28. before uninstallation.
  29. Go to Administration > Configuration >
  30. Content authoring > Text formats and editors > Basic HTML
  31. (admin/config/content/formats/manage/basic_html)
  32. then uncheck Hashtags filter box and submit a form.
  33. Go to Administration > Configuration >
  34. Content authoring > Text formats and editors > Full HTML
  35. (admin/config/content/formats/manage/full_html)
  36. then uncheck Hashtags filter box and submit a form.