You are here

README.txt in Simple Mega Menu 2.0.x

Same filename and directory in other branches
  1. 8 README.txt
CONTENTS OF THIS FILE
---------------------

 * Introduction
 * Requirements
 * Recommended modules
 * Installation
 * Configuration
 * Troubleshooting
 * FAQ
 * Maintainers

INTRODUCTION
------------

Simple MegaMenu module provide a easy way to build mega menu.

This module provides a new content entity type, Simple MegaMenu. These entities
can be managed as the node entity type : Create bundle, add view mode, add
fields, customize display, etc. For each bundle created, you have to specify
on which menu this bundle will be available.

You can then reference, from each Menu link content item, any entities
available for this bundle.

The simple MegaMenu entity attached to an item is then rendered from the Twig
template provided by the module. To achieve this, two new Twig functions are
available :

* view_megamenu(Url $url, 'view_mode') : this function allows to render the
  simple MegaMenu entity attached to an item url, in any view mode needed.
* has_megamenu(Url $url) : this function allows you to check if an item has a
  Simple MegaMenu entity attached to it.

You can then easily customize how your megamenu looks like by overriding the
Twig template in your theme.

By default, the module provide two view modes for the simple mega menu
entity type : Before and After.

The default template use theses two view modes.

You can then easily update your custom template and use any custom view mode
you want, to feet your needs. And you can too render entities attached where
you want.

Simple MegaMenu entities are translatable and revisionable and play nice with
a mutlilingual site.

REQUIREMENTS
------------

None

RECOMMENDED MODULES
-------------------


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

 * Install as you would normally install a contributed Drupal module. See:
   https://drupal.org/documentation/install/modules-themes/modules-7
   for further information.

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

* Create a simple mega menu type, as any Content type
* For each simple mega menu type; you have to set on which menu it will be used.
* Configure the simple mega menu type as for a content type :
  - add fields
  - configure form mode
  - configure view mode
* Create som simple mega menu entities
* Edit any Menu link content item form the menu set on the simple mega menu type
  created above. Select the simple mega menu entity you want attach to the menu
* Override and customize the menu--simple-megamenu.html.twig template belong
  your needs


TROUBLESHOOTING
---------------


FAQ
---


MAINTAINERS
-----------

Current maintainers:
 * flocondetoile - https://drupal.org/u/flocondetoile

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Requirements
  5. * Recommended modules
  6. * Installation
  7. * Configuration
  8. * Troubleshooting
  9. * FAQ
  10. * Maintainers
  11. INTRODUCTION
  12. ------------
  13. Simple MegaMenu module provide a easy way to build mega menu.
  14. This module provides a new content entity type, Simple MegaMenu. These entities
  15. can be managed as the node entity type : Create bundle, add view mode, add
  16. fields, customize display, etc. For each bundle created, you have to specify
  17. on which menu this bundle will be available.
  18. You can then reference, from each Menu link content item, any entities
  19. available for this bundle.
  20. The simple MegaMenu entity attached to an item is then rendered from the Twig
  21. template provided by the module. To achieve this, two new Twig functions are
  22. available :
  23. * view_megamenu(Url $url, 'view_mode') : this function allows to render the
  24. simple MegaMenu entity attached to an item url, in any view mode needed.
  25. * has_megamenu(Url $url) : this function allows you to check if an item has a
  26. Simple MegaMenu entity attached to it.
  27. You can then easily customize how your megamenu looks like by overriding the
  28. Twig template in your theme.
  29. By default, the module provide two view modes for the simple mega menu
  30. entity type : Before and After.
  31. The default template use theses two view modes.
  32. You can then easily update your custom template and use any custom view mode
  33. you want, to feet your needs. And you can too render entities attached where
  34. you want.
  35. Simple MegaMenu entities are translatable and revisionable and play nice with
  36. a mutlilingual site.
  37. REQUIREMENTS
  38. ------------
  39. None
  40. RECOMMENDED MODULES
  41. -------------------
  42. INSTALLATION
  43. ------------
  44. * Install as you would normally install a contributed Drupal module. See:
  45. https://drupal.org/documentation/install/modules-themes/modules-7
  46. for further information.
  47. CONFIGURATION
  48. -------------
  49. * Create a simple mega menu type, as any Content type
  50. * For each simple mega menu type; you have to set on which menu it will be used.
  51. * Configure the simple mega menu type as for a content type :
  52. - add fields
  53. - configure form mode
  54. - configure view mode
  55. * Create som simple mega menu entities
  56. * Edit any Menu link content item form the menu set on the simple mega menu type
  57. created above. Select the simple mega menu entity you want attach to the menu
  58. * Override and customize the menu--simple-megamenu.html.twig template belong
  59. your needs
  60. TROUBLESHOOTING
  61. ---------------
  62. FAQ
  63. ---
  64. MAINTAINERS
  65. -----------
  66. Current maintainers:
  67. * flocondetoile - https://drupal.org/u/flocondetoile