Download & Extend

How to modify this imagefield code for link image field so title shows under image?

Project:Link Image Field
Version:6.x-1.0-beta2
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

See: http://drupal.org/node/324591 which includes code that enables the description field to display under the image. I am needing captions. And I'm using link image field. I'm wondering if someone might help a non-coder tweak the code at http://drupal.org/node/324591 so that it works for the link image field. I've been everywhere for days looking for how-to's and I'm now coming here as my final hope. Anyone?

Comments

#1

Subscribe - same issue

#2

hello, I was looking for the same issue and did'nt found it. I'm not very hard on code but I did that and it's works for me.
Just follow the instructions on http://drupal.org/node/324591 and change
  <?php if ($item['data']['description']) ?> <h5 class="description"><?php { print $item['data']['description']; } ?></h5>

by

  <?php if ($item['title']) ?> <p><?php { print $item['title']; } ?></p>

you can also replace <p></p> by <p class="yourclasse"></p> or wathever you want.

nobody click here