You are here

README.txt in Block Theme 6

Same filename and directory in other branches
  1. 8 README.txt
  2. 5 README.txt
  3. 7 README.txt
== Description ==
BlockTheme allows an admin to define tpl files for standard block templates
and provides a select box on the block configure form so the user can select
a tpl file to use as opposed to having to override the templates by block ID.

== Installation ==

1. Enable the module

2. go to admin/settings/blocktheme and add entries like:
customtemplate|My Custom Template
mysupertemplate|My SuperTemplate
Where the first name is the machine-readable name of your template which may contain only
alphanumerical characters, -, or _ . The second name is the user-friendly name that appears
in the selectionbox on the block edit form.

3. choose from either step 4. or 5. 

4. Create tpl files in your theme directory like: (Note: filenames must be preceded by blocktheme- )
 blocktheme-customtemplate.tpl.php
 blocktheme-mysupertemplate.tpl.php

5. Alternatively use the extra provided variable $blocktheme to customize your
 block.tpl.php or block-*.tpl.php files. The $blocktheme will typically be
 used as a css class name in you template and contains the machine-readable name of
 your template.

== Usage ==

Go to the edit form for any block and select the appropriate template.

== Credits ==

Currently maintained by:
 - Andrei Mateescu - http://drupal.org/user/729614

Updated for drupal 6 by:
 - Tony Miller - tony.miller@eightyoptions.com
 - Gertjan Idema - http://drupal.org/user/269240

File

README.txt
View source
  1. == Description ==
  2. BlockTheme allows an admin to define tpl files for standard block templates
  3. and provides a select box on the block configure form so the user can select
  4. a tpl file to use as opposed to having to override the templates by block ID.
  5. == Installation ==
  6. 1. Enable the module
  7. 2. go to admin/settings/blocktheme and add entries like:
  8. customtemplate|My Custom Template
  9. mysupertemplate|My SuperTemplate
  10. Where the first name is the machine-readable name of your template which may contain only
  11. alphanumerical characters, -, or _ . The second name is the user-friendly name that appears
  12. in the selectionbox on the block edit form.
  13. 3. choose from either step 4. or 5.
  14. 4. Create tpl files in your theme directory like: (Note: filenames must be preceded by blocktheme- )
  15. blocktheme-customtemplate.tpl.php
  16. blocktheme-mysupertemplate.tpl.php
  17. 5. Alternatively use the extra provided variable $blocktheme to customize your
  18. block.tpl.php or block-*.tpl.php files. The $blocktheme will typically be
  19. used as a css class name in you template and contains the machine-readable name of
  20. your template.
  21. == Usage ==
  22. Go to the edit form for any block and select the appropriate template.
  23. == Credits ==
  24. Currently maintained by:
  25. - Andrei Mateescu - http://drupal.org/user/729614
  26. Updated for drupal 6 by:
  27. - Tony Miller - tony.miller@eightyoptions.com
  28. - Gertjan Idema - http://drupal.org/user/269240