You are here

README.txt in Clean Markup 7.2

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

* Overview
* Features
* Requirements
* Installation
* Known problems
* Version history
* Future plans
* Credits
* Recommended modules
* Similar projects

OVERVIEW
--------

This module aims to clean up, enhance and facilitate the customization of markup
for Drupal core and several popular contrib modules such as Panels.

This module cleans up the wrapper and title HTML blocks, panel panes, and panel
layouts; it does not clean up the HTML in the block/panel-pane content — please
refer to the the Fences module for cleaning up field markup.

FEATURES
--------

As of version 2.x:

Blocks
    From each individual block's configuration page (click "configure" on the
    block management screen), you can:
    * Disable or set the HTML5 element to use as the block wrapper,
    * Enable or disable an inner div,
    * Add classes to the outer block element,
    * Add custom attributes (i.e. role="navigation")
    * Set the HTML5 element to wrap the title,
    * Toggle whether the block title is displayed visually,
    * Disable or set the HTML5 element to wrap the content.

Panel panes
    By changing the pane style to "Clean markup" (click the gear in the top-
    right of a pane and click "Change" under "Style"), you can:
    * Disable or set the HTML5 element to use as the pane wrapper,
    * Enable or disable an inner div,
    * Add classes to the outer pane wrapper,
    * Add custom attributes (i.e. role="navigation")
    * Set the HTML5 element to wrap the title,
    * Toggle whether the block title is displayed visually,
    * Disable or set the HTML5 element to wrap the content.

Panel regions
    By changing the region style to "Clean markup" (click the gear in the top-
    left of a region and click "Change" under "Style"; or click "Display
    settings" on the panel itself), you can:
    * Disable or set the HTML5 element to use as the region wrapper,
    * Enable or disable an inner div,
    * Add classes to the outer region element,
    * Add custom attributes (i.e. role="navigation").
    * Enable or disable separator divs between panes in the region.

Panel Layouts
    Layouts have been provided to take advantage of Clean Markup's ability to
    output the minimal amount of markup.
    * One Column Clean: one region and single <section> wrapper.
    * One Column Reset: one region with no wrapper.
    * Six pack: six regions.
    * Myriad: five rows with four regions each that will output the absolute
      minimum markup. For example, a row with only one region will not output
      the row wrapper.

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

Clean markup API
    no dependencies.
Clean block markup
    Block (in core) and Clean markup API
Clean panels markup
    Panels and Clean markup API
Tokens (Optional)
    For use in the custom attributes.

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

1. Download and install the clean_markup project.

   If you want to change the markup of blocks, enable the "Clean block markup"
   module.

   If you want to change the markup of panels, enable the "Clean panels markup"
   module.

   See https://drupal.org/node/895232 for further information.

2. In order for a user to change the clean markup settings, they will need to
   have the correct permissions.

   To change the markup of blocks, a user will need *both* the "Administer
   blocks" and the "Administer clean markup block settings" permissions.

   To use Clean Markup module with Panels layouts, users will need the relevant
   permissions for using one or more of the Panels Suite interfaces (Mini
   panels, Panel nodes, Page manager, etc.), the "Administer Panels styles"
   permission and one or both of the following:

     - To change the markup of panel panes, "Administer clean panel pane markup
       settings".
     - To change the markup of panel regions, "Administer clean panel region
       markup settings".

   See https://drupal.org/node/1576512 for further information.

3. By default, the Clean Markup module doesn't make many changes to the markup
   to avoid breaking existing themes. To take control of the markup for a
   particular block, panel pane, panel region or panel layout, you must
   configure them.

   A block's clean markup settings can be changed from the block's settings
   page. See https://drupal.org/node/1576532 for further information. Note that
   if your theme (or your theme's base theme) has it's own block.tpl.php file,
   the Clean markup settings you choose may not take effect. In this case, you
   will need to copy modules/clean_markup_blocks/block.tpl.php from this module
   into your theme. See https://drupal.org/node/341628 and
   https://drupal.org/node/173880#template-override for further information.

   A panel pane's clean markup settings can be administered by changing the pane
   style to "Clean markup" (click the gear in the top-right of a pane and click
   "Change" under "Style").

   A panel region's clean markup settings can be administered by changing the
   region style to "Clean markup" (click the gear in the top-left of a region
   and click "Change" under "Style"; or click "Display settings" on the panel
   itself).

   Clean markup also provides a set of panel layouts with cleaner markup. To use
   these, you must replace a panel's current layout with one from the "Clean
   Markup" category.

KNOWN PROBLEMS
--------------

We don't know of any problems at this time, so if you find one, please let us
know by adding an issue!

VERSION HISTORY
---------------

The 1.x branch contains only the Clean Block Markup module. Updates made to
other branches that affect Clean Block Markup are being backported to this
branch if possible.

The 2.x branch is the current stable branch, and contains both the Clean Block
Markup and the Clean Panel Markup modules. Updates made to other branches that
affect Clean Block Markup and Clean Panel markup are being backported to this
branch if possible.

FUTURE PLANS
------------

The 3.x branch is currently in development, and contains the Clean Block Markup,
Clean Panel Markup and Clean Views Markup blocks.

We may also write something for Display Suite.


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

If you want to clean up the markup of nodes, comments, taxonomy terms or users,
check out Display Suite.

If you want to clean up the markup of fields, check out Fences.

If you want a really clean base theme, check out Mothership.

SIMILAR PROJECTS
----------------

The clean panel markup sub-module is similar to the Semantic Panels module,
available from https://drupal.org/project/semantic_panels . There are efforts
underway to collaborate with them: https://drupal.org/node/2087777 .

CREDITS
-------

Concept by rhache. Coding by mparker17 and anandps with assistance from rhache.
Sponsored by Myplanet Digital (http://www.myplanetdigital.com) and OpenConcept
Consulting (http://openconcept.ca/).

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Overview
  4. * Features
  5. * Requirements
  6. * Installation
  7. * Known problems
  8. * Version history
  9. * Future plans
  10. * Credits
  11. * Recommended modules
  12. * Similar projects
  13. OVERVIEW
  14. --------
  15. This module aims to clean up, enhance and facilitate the customization of markup
  16. for Drupal core and several popular contrib modules such as Panels.
  17. This module cleans up the wrapper and title HTML blocks, panel panes, and panel
  18. layouts; it does not clean up the HTML in the block/panel-pane content — please
  19. refer to the the Fences module for cleaning up field markup.
  20. FEATURES
  21. --------
  22. As of version 2.x:
  23. Blocks
  24. From each individual block's configuration page (click "configure" on the
  25. block management screen), you can:
  26. * Disable or set the HTML5 element to use as the block wrapper,
  27. * Enable or disable an inner div,
  28. * Add classes to the outer block element,
  29. * Add custom attributes (i.e. role="navigation")
  30. * Set the HTML5 element to wrap the title,
  31. * Toggle whether the block title is displayed visually,
  32. * Disable or set the HTML5 element to wrap the content.
  33. Panel panes
  34. By changing the pane style to "Clean markup" (click the gear in the top-
  35. right of a pane and click "Change" under "Style"), you can:
  36. * Disable or set the HTML5 element to use as the pane wrapper,
  37. * Enable or disable an inner div,
  38. * Add classes to the outer pane wrapper,
  39. * Add custom attributes (i.e. role="navigation")
  40. * Set the HTML5 element to wrap the title,
  41. * Toggle whether the block title is displayed visually,
  42. * Disable or set the HTML5 element to wrap the content.
  43. Panel regions
  44. By changing the region style to "Clean markup" (click the gear in the top-
  45. left of a region and click "Change" under "Style"; or click "Display
  46. settings" on the panel itself), you can:
  47. * Disable or set the HTML5 element to use as the region wrapper,
  48. * Enable or disable an inner div,
  49. * Add classes to the outer region element,
  50. * Add custom attributes (i.e. role="navigation").
  51. * Enable or disable separator divs between panes in the region.
  52. Panel Layouts
  53. Layouts have been provided to take advantage of Clean Markup's ability to
  54. output the minimal amount of markup.
  55. * One Column Clean: one region and single
    wrapper.
  56. * One Column Reset: one region with no wrapper.
  57. * Six pack: six regions.
  58. * Myriad: five rows with four regions each that will output the absolute
  59. minimum markup. For example, a row with only one region will not output
  60. the row wrapper.
  61. REQUIREMENTS
  62. ------------
  63. Clean markup API
  64. no dependencies.
  65. Clean block markup
  66. Block (in core) and Clean markup API
  67. Clean panels markup
  68. Panels and Clean markup API
  69. Tokens (Optional)
  70. For use in the custom attributes.
  71. INSTALLATION
  72. ------------
  73. 1. Download and install the clean_markup project.
  74. If you want to change the markup of blocks, enable the "Clean block markup"
  75. module.
  76. If you want to change the markup of panels, enable the "Clean panels markup"
  77. module.
  78. See https://drupal.org/node/895232 for further information.
  79. 2. In order for a user to change the clean markup settings, they will need to
  80. have the correct permissions.
  81. To change the markup of blocks, a user will need *both* the "Administer
  82. blocks" and the "Administer clean markup block settings" permissions.
  83. To use Clean Markup module with Panels layouts, users will need the relevant
  84. permissions for using one or more of the Panels Suite interfaces (Mini
  85. panels, Panel nodes, Page manager, etc.), the "Administer Panels styles"
  86. permission and one or both of the following:
  87. - To change the markup of panel panes, "Administer clean panel pane markup
  88. settings".
  89. - To change the markup of panel regions, "Administer clean panel region
  90. markup settings".
  91. See https://drupal.org/node/1576512 for further information.
  92. 3. By default, the Clean Markup module doesn't make many changes to the markup
  93. to avoid breaking existing themes. To take control of the markup for a
  94. particular block, panel pane, panel region or panel layout, you must
  95. configure them.
  96. A block's clean markup settings can be changed from the block's settings
  97. page. See https://drupal.org/node/1576532 for further information. Note that
  98. if your theme (or your theme's base theme) has it's own block.tpl.php file,
  99. the Clean markup settings you choose may not take effect. In this case, you
  100. will need to copy modules/clean_markup_blocks/block.tpl.php from this module
  101. into your theme. See https://drupal.org/node/341628 and
  102. https://drupal.org/node/173880#template-override for further information.
  103. A panel pane's clean markup settings can be administered by changing the pane
  104. style to "Clean markup" (click the gear in the top-right of a pane and click
  105. "Change" under "Style").
  106. A panel region's clean markup settings can be administered by changing the
  107. region style to "Clean markup" (click the gear in the top-left of a region
  108. and click "Change" under "Style"; or click "Display settings" on the panel
  109. itself).
  110. Clean markup also provides a set of panel layouts with cleaner markup. To use
  111. these, you must replace a panel's current layout with one from the "Clean
  112. Markup" category.
  113. KNOWN PROBLEMS
  114. --------------
  115. We don't know of any problems at this time, so if you find one, please let us
  116. know by adding an issue!
  117. VERSION HISTORY
  118. ---------------
  119. The 1.x branch contains only the Clean Block Markup module. Updates made to
  120. other branches that affect Clean Block Markup are being backported to this
  121. branch if possible.
  122. The 2.x branch is the current stable branch, and contains both the Clean Block
  123. Markup and the Clean Panel Markup modules. Updates made to other branches that
  124. affect Clean Block Markup and Clean Panel markup are being backported to this
  125. branch if possible.
  126. FUTURE PLANS
  127. ------------
  128. The 3.x branch is currently in development, and contains the Clean Block Markup,
  129. Clean Panel Markup and Clean Views Markup blocks.
  130. We may also write something for Display Suite.
  131. RECOMMENDED MODULES
  132. -------------------
  133. If you want to clean up the markup of nodes, comments, taxonomy terms or users,
  134. check out Display Suite.
  135. If you want to clean up the markup of fields, check out Fences.
  136. If you want a really clean base theme, check out Mothership.
  137. SIMILAR PROJECTS
  138. ----------------
  139. The clean panel markup sub-module is similar to the Semantic Panels module,
  140. available from https://drupal.org/project/semantic_panels . There are efforts
  141. underway to collaborate with them: https://drupal.org/node/2087777 .
  142. CREDITS
  143. -------
  144. Concept by rhache. Coding by mparker17 and anandps with assistance from rhache.
  145. Sponsored by Myplanet Digital (http://www.myplanetdigital.com) and OpenConcept
  146. Consulting (http://openconcept.ca/).