Jan, that is great, and works straight away. Just missed this bit of code. Regards, Bert
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Jan Haderka Sent: maandag 31 augustus 2009 21:00 To: Magnolia Dev-List Subject: Re: [magnolia-dev] how to get image of datatype to display in the tree On Mon, 2009-08-31 at 09:06 +0200, Bert Leunis wrote: > Goodmorning, > > > tree.addItemType(typeDefinition.getName(), image); I believe what you are looking for is: tree.addItemType(typeDefinition.getName(), typeDefinition.getIcon()); the getIcon() method constructs path to the type image ... something like: "/dataModule/typeImages/" + typeName + "/image" ... which is actually an universal path to the type image ... you can type it directly in the url and get the image back. HTH, Jan > > > > But the image here is a String, not a Binary type or stream or > whatever. Can you help me here? > > > > Of course I can put the image in the dms, and then simply link to it, > but I suspect there is a way to show the binary stored image in the > tree, but I have no clue. > > > > Regards, Bert > > > > > > > > ______________________________________________________________________ > ---------------------------------------------------------------- > For list details see > http://www.magnolia-cms.com/home/community/mailing-lists.html > To unsubscribe, E-mail to: <[email protected]> > ---------------------------------------------------------------- -- Best regards, Jan Haderka Magnolia International Ltd. Meet us at the Magnolia Conference http:/www.magnolia-cms.com/conference Magnolia® - Simple Open Source Content Management ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ---------------------------------------------------------------- ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
