Closed (fixed)
Project:
Rep[lacement]Tags
Version:
5.x-1.3
Component:
Contributed .tags module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2007 at 19:58 UTC
Updated:
22 May 2007 at 23:31 UTC
{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 :-)
| Comment | File | Size | Author |
|---|---|---|---|
| hj_figuretag.tag_.txt | 2.65 KB | AnotherHowie |
Comments
Comment #1
profix898 commentedHi 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 ...
Comment #2
profix898 commentedI 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.
Comment #3
(not verified) commented