.tag file for "figures"
AnotherHowie - February 22, 2007 - 19:58
| Project: | Rep[lacement]Tags |
| Version: | 5.x-1.3 |
| Component: | Contributed .tags module |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
{RFIGURE:13} {LFIGURE:12:specialsize}
I wanted to easily include figures in my articles, without adding a ton of markup and with nice captions. These tags allow you to use existing images from the Image module, using their Title and Body properties to make the captions for the images. The whole thing is wrapped up in a DIV and classed, ready for some CSS action. I use
div.figure { margin: 4px; padding: 4px; background: white; border: 1px #ddd solid; }
.hj_fleft { float:left; }
.hj_fright { float:right; }but the actual markup is generic enough to play with the format.
Thought I'd share, since I couldn't find anything equivalent. My first Drupal contribution :-)
| Attachment | Size |
|---|---|
| hj_figuretag.tag_.txt | 2.65 KB |

#1
Hi Howard! Welcome to the Drupal community and thanks a lot for contributing! I will take a look at your code and comment back as soon as time permits ...
#2
I have added a new contributed .tags module called 'image_node.tags' based on your code. However its not 100% compatible. I removed especially your customized style classes (hj_left, ...) and cleaned up the code. You can find an overview of all contributed .tags modules at http://www.profix898.de/drupal/reptag/modules or the image_node.tags module directly at http://www.profix898.de/de/node/90.
Thanks a lot for you inspiration for such a module.
#3