You are here

README.txt in Theme Switcher Rules 8

CONTENTS OF THIS FILE
---------------------

 * Introduction
 * Requirements
 * Installation
 * Configuration
 * FAQ
 * Maintainers


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

The Theme Switcher module allows you to create theme-switching rules which 
allow automatic selection of a theme based on Drupal 8 Conditions system. 
Because of this it can also be easily extended to support additional 
custom conditions exposed by other modules. In Drupal 8 conditions are no 
longer defined through a hook and they are plugins now.

This modules is currently only available for Drupal 8.

 * For a full description of the module, visit the project page:
   https://www.drupal.org/project/theme_switcher

 * To submit bug reports and feature suggestions, or track changes:
   https://www.drupal.org/project/issues/theme_switcher
  
 * For Conditions further information:
   https://www.drupal.org/docs/8/modules/d8-rules-essentials/for-developers/conditions


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

The module require PHP >=7.1 and Drupal 8.5 or higher.


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

Install as you would normally install a contributed Drupal module. See
https://www.drupal.org/docs/8/extending-drupal-8/installing-drupal-8-modules
for further information.


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

* Configure the user permissions in Administration >> People >> Permissions:

    - Administer all Theme Switcher Rules
    
        Allows all permissions for the module.
       
    - View Theme Switcher Rules
    
        Users with this permission will be allow to view all Theme Switcher 
        Rules.
    
    - Create Theme Switcher Rules
    
        Users with this permission will be allow to create Theme Switcher 
        Rules.
    
    - Edit Theme Switcher Rules
    
        Users with this permission will be allow to edit Theme Switcher Rules.
    
    - Delete Theme Switcher Rules
    
        Users with this permission will be allow to delete Theme Switcher 
        Rules.

* Configuring theme switcher rules:

    - To create a theme switcher rule, you must provide the following 
    information:

        * A *name* to be used in lists of theme switcher rules.
        * A *machine_name* that must be unique. This value will be 
        autogenerated and cannot be edited once created.
        * A *status* indicating `active` or `inactive`.
        * A hidden field *weight* that can be changed using the list drag&drop 
        interface.
        * A *theme* to apply when each conditions are evaluated and pass.
        * A set of *Conditions* that indicate each one of the variables that 
        must be satisfied by the rule to apply the above selected theme.

    **IMPORTANT**: All the rules will be evaluated in the order of the list. 
    This means that once the rule pass all its conditions in a satisfying way 
    the rest of the rules will not be evaluated.


FAQ
---

 Q: What can I do with this module?

 A: You can apply a specific theme to a unique node, use different themes based
    on the page language, use contrib conditions like a domain to apply one
    theme or another. The best of all is that you can do al of the above at
    once!


Maintainers
-----------

Current maintainers:
 * Adrian Marin (amarincolas) - https://www.drupal.org/u/amarincolas

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Requirements
  5. * Installation
  6. * Configuration
  7. * FAQ
  8. * Maintainers
  9. INTRODUCTION
  10. ------------
  11. The Theme Switcher module allows you to create theme-switching rules which
  12. allow automatic selection of a theme based on Drupal 8 Conditions system.
  13. Because of this it can also be easily extended to support additional
  14. custom conditions exposed by other modules. In Drupal 8 conditions are no
  15. longer defined through a hook and they are plugins now.
  16. This modules is currently only available for Drupal 8.
  17. * For a full description of the module, visit the project page:
  18. https://www.drupal.org/project/theme_switcher
  19. * To submit bug reports and feature suggestions, or track changes:
  20. https://www.drupal.org/project/issues/theme_switcher
  21. * For Conditions further information:
  22. https://www.drupal.org/docs/8/modules/d8-rules-essentials/for-developers/conditions
  23. REQUIREMENTS
  24. ------------
  25. The module require PHP >=7.1 and Drupal 8.5 or higher.
  26. INSTALLATION
  27. ------------
  28. Install as you would normally install a contributed Drupal module. See
  29. https://www.drupal.org/docs/8/extending-drupal-8/installing-drupal-8-modules
  30. for further information.
  31. CONFIGURATION
  32. -------------
  33. * Configure the user permissions in Administration >> People >> Permissions:
  34. - Administer all Theme Switcher Rules
  35. Allows all permissions for the module.
  36. - View Theme Switcher Rules
  37. Users with this permission will be allow to view all Theme Switcher
  38. Rules.
  39. - Create Theme Switcher Rules
  40. Users with this permission will be allow to create Theme Switcher
  41. Rules.
  42. - Edit Theme Switcher Rules
  43. Users with this permission will be allow to edit Theme Switcher Rules.
  44. - Delete Theme Switcher Rules
  45. Users with this permission will be allow to delete Theme Switcher
  46. Rules.
  47. * Configuring theme switcher rules:
  48. - To create a theme switcher rule, you must provide the following
  49. information:
  50. * A *name* to be used in lists of theme switcher rules.
  51. * A *machine_name* that must be unique. This value will be
  52. autogenerated and cannot be edited once created.
  53. * A *status* indicating `active` or `inactive`.
  54. * A hidden field *weight* that can be changed using the list drag&drop
  55. interface.
  56. * A *theme* to apply when each conditions are evaluated and pass.
  57. * A set of *Conditions* that indicate each one of the variables that
  58. must be satisfied by the rule to apply the above selected theme.
  59. **IMPORTANT**: All the rules will be evaluated in the order of the list.
  60. This means that once the rule pass all its conditions in a satisfying way
  61. the rest of the rules will not be evaluated.
  62. FAQ
  63. ---
  64. Q: What can I do with this module?
  65. A: You can apply a specific theme to a unique node, use different themes based
  66. on the page language, use contrib conditions like a domain to apply one
  67. theme or another. The best of all is that you can do al of the above at
  68. once!
  69. Maintainers
  70. -----------
  71. Current maintainers:
  72. * Adrian Marin (amarincolas) - https://www.drupal.org/u/amarincolas