You are here

README.txt in Social Link Field 8

Social Link Field
-----------------
-- SUMMARY --

Provides a social link field type. The module has possible to customize form
widget and form formatter.


-- INSTALLATION --

* Install as usual, see https://drupal.org/node/1897420 for further information.


-- CONFIGURATION --

* Configure user permissions in Administration » People » Permissions:
  - Configure social link field type
    Allows or denies access to so Social Link Field Settings page.

* Customize the menu settings in Administration » Configuration »
  Web services » Social Link Field Settings.
  - Attach external Font Awesome library
    Attach external Font Awesome (FA) library if you do not attach FA in your
    theme

-- USAGE --

* In entity type manages fields create a new field and select Social Links.

* Enter allowed number of values.

* Set default field values. In limited number of values, you can forbid to
  change social networks in entity create/edit form and can forbid to change
  items order.

* Set settings to form widget.

* Choose formatter and set it settings. There are 2 formatters:
  1) FontAwesome icons (Common/Square).
  2) Network name.

* Create entity.


-- CUSTOMIZATION --

* To override the default FontAwesome icons just override in CSS.

* To add your custom social network, create your custom module and in path
  src/Plugin/SocialLinkField/Platform create empty php class with annotation,
  like this:

      /**
       * Provides 'PLATFORM NAME' platform.
       *
       * @SocialLinkFieldPlatform(
       *   id = "PLATFORM_ID",
       *   name = @Translation("PLATFORM NAME"),
       *   icon = "FONT_AWESOME_ICON_CLASS",
       *   iconSquare = "FONT_AWESOME_SQUARE_ICON_CLASS",
       *   urlPrefix = "PLATFORM_URL_PREFIX",
       * )
       */
      class CLASS_NAME extends PlatformBase {}


-- CONTACT --

Current maintainers:
* Roman Hryshkanych (romixua) - http://drupal.org/user/3516201

File

README.txt
View source
  1. Social Link Field
  2. -----------------
  3. -- SUMMARY --
  4. Provides a social link field type. The module has possible to customize form
  5. widget and form formatter.
  6. -- INSTALLATION --
  7. * Install as usual, see https://drupal.org/node/1897420 for further information.
  8. -- CONFIGURATION --
  9. * Configure user permissions in Administration » People » Permissions:
  10. - Configure social link field type
  11. Allows or denies access to so Social Link Field Settings page.
  12. * Customize the menu settings in Administration » Configuration »
  13. Web services » Social Link Field Settings.
  14. - Attach external Font Awesome library
  15. Attach external Font Awesome (FA) library if you do not attach FA in your
  16. theme
  17. -- USAGE --
  18. * In entity type manages fields create a new field and select Social Links.
  19. * Enter allowed number of values.
  20. * Set default field values. In limited number of values, you can forbid to
  21. change social networks in entity create/edit form and can forbid to change
  22. items order.
  23. * Set settings to form widget.
  24. * Choose formatter and set it settings. There are 2 formatters:
  25. 1) FontAwesome icons (Common/Square).
  26. 2) Network name.
  27. * Create entity.
  28. -- CUSTOMIZATION --
  29. * To override the default FontAwesome icons just override in CSS.
  30. * To add your custom social network, create your custom module and in path
  31. src/Plugin/SocialLinkField/Platform create empty php class with annotation,
  32. like this:
  33. /**
  34. * Provides 'PLATFORM NAME' platform.
  35. *
  36. * @SocialLinkFieldPlatform(
  37. * id = "PLATFORM_ID",
  38. * name = @Translation("PLATFORM NAME"),
  39. * icon = "FONT_AWESOME_ICON_CLASS",
  40. * iconSquare = "FONT_AWESOME_SQUARE_ICON_CLASS",
  41. * urlPrefix = "PLATFORM_URL_PREFIX",
  42. * )
  43. */
  44. class CLASS_NAME extends PlatformBase {}
  45. -- CONTACT --
  46. Current maintainers:
  47. * Roman Hryshkanych (romixua) - http://drupal.org/user/3516201