.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
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 :-)

AttachmentSize
hj_figuretag.tag_.txt2.65 KB

#1

profix898 - February 22, 2007 - 21:27

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

profix898 - May 8, 2007 - 23:11
Component:.tags Modules» Contributed .tags module
Status:patch (code needs review)» fixed

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

Anonymous - May 22, 2007 - 23:31
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.