by nikkiauburger » 03 Mar 2010, 14:37
Just to notify you, this feature has been added in trunk. Release 5.2.1 will be due probably this week or next week, but if you want to use it right away you can download the trunk version through Subversion (see the installation tutorial). It works like this:
a primary image can still be set through TreeDataRow::primaryImage( $src )
now you can also set an image for any kind of cell (either in combination with text/checkbox/progressmeter or alone) with the function TreeDataRow::setImage( $column, $src ), where $column is the name of the column and $src the path or url to the image.
By the way, I don't know if this is clear from the documentation but if an image src starts with a / it's assumed to be relative to the sitefusion root. So if you want to show the image stored in app/yourapp/myimage.png, your $src would be '/app/yourapp/myimage.png'. This counts for XULImage and the likes as well. Only XULFileSystemImage accepts absolute system paths.