[development] image node type
Ber Kessels
ber at webschuur.com
Sat Dec 10 11:45:37 UTC 2005
> Predefined page layouts like in OO Impress ?
No, Like in image.module.
function theme_image_body($node) {
$node->body = '<img ... class="inline preview">' . $node->body
return $node;
}
As in: no interface at all. Just append the image to the body string, on
viewm, in a theme function. Its up to the themer to place the image in a
nice location, not up to the user to (have to) decide to place the image
in the upper right corner for every node. (ooh, imagine the fun when you
decide that witha new layout you want them in the bottom left corner,
imagine moving ALL the tokens in your body. I get RSI if i only think
about this.
Ber
--
More information about the development
mailing list