You are here

README.txt in Clean Markup 7.3

Same filename and directory in other branches
  1. 7 README.txt
  2. 7.2 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.

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.

   If you want to change the markup of views, enable the "Clean views 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".

   To change the markup of views, a user will need at least the "Administer
   clean views markup settings" and "Administer views" permissions.

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