Friday 10 July 2009 8:23:41 pm
The proper way would be to import those images as separate objects and then embed those objects in the XML blocks. The quick and dirty way to get images into XML blocks (useful if you really must reference external images) is to use custom tags. A little outline: In content.ini.append.php
[CustomTagSettings]
AvailableCustomTags[]=ext_image
IsInline[ext_image]=true
[ext_image]
CustomAttributes[]=ext_src
CustomAttributes[]=ext_alt
------------------------------------------ Template for this custom tag: design/designname/templates/content/datatype/view/ezxmltags/ext_image.tpl
<img src="{$ext_src}" alt="{$ext_alt}" />
------------------------------------------ Example usage in an XML block:
<custom name="ext_image" ext_alt="This comic makes me feel good about working in Open Source" ext_src="http://www.socialsignal.com/system/files/images/2007-09-11-sunset.gif"></custom>
|