You are here

README.txt in Flag 6.2

Same filename in this branch
  1. 6.2 README.txt
  2. 6.2 theme/README.txt
Same filename and directory in other branches
  1. 5 theme/README.txt
  2. 6 theme/README.txt
  3. 7.3 theme/README.txt
  4. 7.2 theme/README.txt
Theming instructions
====================

You may want to visit the Theming Guide of this module, at:

  http://drupal.org/node/295346

Template file
-------------
In order to customize flag theming:

- Copy the 'flag.tpl.php' template file into your theme's folder.[1]

- Clear your theme registry.[2]

- Edit that copy to your liking.


Template variants[3]
-----------------
In addition, the theme layer will first look for the template
'flag--<FLAG_NAME>.tpl.php' before it turns to 'flag.tpl.php'. This too
you should place in your theme's folder.[2][1]


Footnotes
---------
[1] Or to a sub-folder in your theme's folder.

[2] Clearing the theme registry makes Drupal aware of your new template
file. This step is needed if you create or rename template files. This
step *isn't* needed if you merely modify the contents of a file. Instructions
on how to clear you theme registry are at http://drupal.org/node/173880#theme-registry

[3] For template variants to work correctly you must use Drupal 6.3 or above (or
apply the patch from http://drupal.org/node/241570).

File

theme/README.txt
View source
  1. Theming instructions
  2. ====================
  3. You may want to visit the Theming Guide of this module, at:
  4. http://drupal.org/node/295346
  5. Template file
  6. -------------
  7. In order to customize flag theming:
  8. - Copy the 'flag.tpl.php' template file into your theme's folder.[1]
  9. - Clear your theme registry.[2]
  10. - Edit that copy to your liking.
  11. Template variants[3]
  12. -----------------
  13. In addition, the theme layer will first look for the template
  14. 'flag--.tpl.php' before it turns to 'flag.tpl.php'. This too
  15. you should place in your theme's folder.[2][1]
  16. Footnotes
  17. ---------
  18. [1] Or to a sub-folder in your theme's folder.
  19. [2] Clearing the theme registry makes Drupal aware of your new template
  20. file. This step is needed if you create or rename template files. This
  21. step *isn't* needed if you merely modify the contents of a file. Instructions
  22. on how to clear you theme registry are at http://drupal.org/node/173880#theme-registry
  23. [3] For template variants to work correctly you must use Drupal 6.3 or above (or
  24. apply the patch from http://drupal.org/node/241570).