Ah, you're a lifesaver as always, Ralf. This took me a while to muddle through, but I've got the idea now. Magnolia was, as you implied, in fact storing the data, though the way it represents binary data in the JCR Browser tool didn't make that particularly obvious. :-P
I've got the code tweaked enough to actually be pulling the image data from the database now. (It helped a good deal once I found the 3.0 Javadocs and stopped looking at the 2.1 version!) I've still got several problems to sort out, but I'll keep working on those and will post a working v3.0 version of the code once I've got the polish on. Thanks again! Sean On 7/28/06 3:22 PM, "Ralf Hirning" <[email protected]> wrote: > Hi Sean, > > the content structure of binaries has changed from Magnolia 2.1 to Magnolia > 3.0. > In Magnolia 2.1 each binary "image" node had a sibling node > "image_properties" where all the meta-data of the binary has been stored. > In Magnolia 3.0 meta-data is stored as attributes of the "image" nodeData. > > As a reference how to use the attributes have a look at textImage.jsp of the > template samples: > > <cms:ifNotEmpty nodeDataName="image"> > <cms:setNode var="imagedata" /> > <cms:out nodeDataName="image" var="imageurl" /> > <img src="${pageContext.request.contextPath}${imageurl}" > class="contentImage_${imagedata.imageFloat}" > alt="${imagedata.imageAlt}" /> > </cms:ifNotEmpty> > > Ralf > > -----Ursprüngliche Nachricht----- > Von: [email protected] [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 28. Juli 2006 20:25 > An: [email protected] > Betreff: [magnolia-user] Image Gallery & Magnolia 3.0 > > Has anybody made any progress toward getting the Image Gallery/Lightbox code > from the wiki <http://www.magnolia.info/wiki/Wiki.jsp?page=ImageGallery> > working with v3.0 of Magnolia? I've tweaked the JSP so that it's compiling > and running under v3.0RC2 by changing the deprecated ContentNode references > to Content references. > > It seems like all of that code is now running ok, but once I open the > imageGalleryCell dialog by clicking on "New Image" and I try to upload an > image, the image file data is not persisted to the JCR repository -- there's > just a node data item called "image" with a blank value. The fact that the > non-file attributes like the ALT text are persisting correctly makes me > suspect that this is an issue with Magnolia, rather than with the > ImageGallery code. I'm not, however, far enough along in my Magnolia > understanding to verify that's the case with a debugger. > > If anybody more accomplished wants to dive in, I'd sure appreciate it! I've > uploaded the version of the code with my changes to the wiki. > > Best, > Sean > > > ---------------------------------------------------------------- > for list details see > http://www.magnolia.info/en/magnolia/developer.html > ---------------------------------------------------------------- ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
