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

Stefan Lehmann’s picture

I like cookies!

iantresman’s picture

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:

Stefan Lehmann’s picture

Well there is, but not for D6.

.. or hm .. maybe have a look at the custom formatters module.

I like cookies!

iantresman’s picture

Thanks for that, just for reference, here's the link to the D6/D7 Custom Formatters module