Howdy,
i need to wrap images into additional markup for further css styling. I would like to have something like that: <p><span><img src="path/to/image" alt="alt"/></span></p>
.
The images are added directly on the specific node using following modules:
- http://drupal.org/project/insert
- http://drupal.org/project/image
- http://drupal.org/project/cck -> ImageField
Here is the content of my node-[type].tpl.php:
<div id="article">
<div id="article-header">
<h2><?php print $title; ?></h2>
<?php if ($submitted): ?>
<p class="created"><?php echo date("d. F Y - H:i", $created).t(' von ').$name; ?></p>
<?php endif; ?>
</div>
<div class="article-body">
<?php print $content; ?>
</div>
<?php if ($links): ?>
<div class="extra-links">
<?php print $links; ?>
</div>
<?php endif; ?>
</div>
<?php if($node->comment == 0 && isset($node->comment_count) && $node->comment_count < 1): ?>
<div id="comments">
<p class="note">Kommentare geschlossen</p>
</div>
<?php endif; ?>
I think i have to do something with $content
. But i really have no idea. Any suggestions?