ez.no / ezpublish / documentation / incoming / developing and improving ezpublish / making embedded objects inline elements instead of block elements
These documentation pages are no longer maintained. Please visit the new documentation site.
By default embedded objects are rendered as a block object; ie. the paragraph into which an object is embedded is broken up and the object is placed inbetween. Most often you do not want this to happen with images, instead you want them inlined into the paragraph.
You can instruct eZ Publish to do so by placing the following in the (overloaded) template for the object:
{set-block scope=root variable=is_block}false{/set-block}
If you change the value to "true" then the object will be rendered as a block object again.
Comments
Which template?
Mindshare Interactive Campaigns
Thursday 22 June 2006 9:43:56 pm