Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By iantresman on
In Drupal 6, I want to customise some CCK field data with some added HTML, but am not sure of the best/easiest way to do this. I couldn't find a CCK module to do this.
For example, I want to enter a URL (which is stored in the field), and then when it is displayed, it is embedded in some HTML. eg.
CCK Field data: filename.jpg
Output HTML: <div id="uniqueid"><img src="http://example.com/{{CCK Field data}}" title="Text"><br />Picture</div>
Comments
http://friendlydrupal.com
http://friendlydrupal.com/screencasts/theming-individual-cck-fields-temp... .. I think you'll find all you need there.
I like cookies!
Thanks for that, looks like
Thanks for that, looks like what I need. Am surprised there is no module to redefine and override them. I found some other references too, including:
Well there is, but not for D6
Well there is, but not for D6.
.. or hm .. maybe have a look at the custom formatters module.
I like cookies!
Thanks for that, just for
Thanks for that, just for reference, here's the link to the D6/D7 Custom Formatters module