I have been working to get other modules to include support for TI. The latest is the FAQ module.

However, this new usage produces lists and because the image sizes may not all be the same width, those lists can look ragged. To fix this, I coded up this little patch to add a wrapper <div> around the image. There is also a new setting to turn it on, so no one will have a broken implementation.

This allowed me to do this with my CSS:

.faq .taxonomy_image_wrapper {
  float: left; 
  width: 70px; 
  margin-bottom: 0.5em;
  padding: 0px 0px 0px 0px;
}

img.faq_tax_image {
  padding: 0px 0px 0px 0px;
}

So now everything lines up correctly.

This would also allow other little things, like putting a fancy border around it, or add a background color or frame.

CommentFileSizeAuthor
tximg_wrapper.txt1.85 KBnancydru

Comments

nancydru’s picture

Status: Active » Needs review
brewreview.info’s picture

Thanks for posting this -- works great!

This was exactly what I was looking for, to display my multiple taxonomy_images per node neat and orderly.

Cheers,
//TB

nancydru’s picture

Assigned: Unassigned » nancydru
Status: Needs review » Fixed

fix committed.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.