Hi,<br><br>I did what you suggested, without a result... <br>when I set back the CmsPhotoAlbumConfiguration to the CmsPhotoAlbumBean object, the album detailoverview is not displayed at all anymore....<br><br>Any more hints for my square details pics ?<br>
<br>Best regards,<br>Yves<br><br>CmsPhotoAlbumBean cmsPhoto = new CmsPhotoAlbumBean(pageContext, request, response);<br><br>// set the CSS style class names<br>CmsPhotoAlbumStyle style = new CmsPhotoAlbumStyle();<br>style.setClassThumbTable("pgThumbTable");<br>
style.setClassThumbImageTitle("pgThumbImageTitle");<br>style.setClassThumbText("pgThumbText");<br>style.setClassNavigation("pgNavigation");<br>style.setClassDetailImageDescription("pgDetailImageDescription");<br>
style.setClassDetailImageTitle("pgDetailImageTitle");<br><br>cmsPhoto.setStyle(style);<br><br>CmsPhotoAlbumConfiguration configuration = new CmsPhotoAlbumConfiguration();<br>configuration.getDetailImageScaler().setQuality(90);<br>
configuration.getDetailImageScaler().setType(2);<br>configuration.getDetailImageScaler().setCropArea(0, 0, 80, 80);<br><br>cmsPhoto.setConfiguration(configuration); <span style="color: rgb(255, 0, 0);"><- when I add this line, the album is not displayed at all anymore</span><br>
<br><br><br><div class="gmail_quote">On 9 July 2010 15:38, Paul-Inge Flakstad <span dir="ltr"><<a href="mailto:flakstad@npolar.no">flakstad@npolar.no</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Hi Yves,</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">That method is protected, so you cannot access it
directly</font></span><span><font color="#0000ff" face="Arial" size="2">.</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">Try something like this instead (haven't tested it
myself):</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">CmsPhotoAlbumConfiguration configuration = new
CmsPhotoAlbumConfiguration();</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">configuration.getDetailImageScaler().setQuality(90);</font></span></div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">configuration.getDetailImageScaler().setType(2);</font></span></div>
<div dir="ltr" align="left"><span>
<div dir="ltr" align="left"><span><font color="#0000ff" face="Arial" size="2">configuration.getDetailImageScaler().setCropArea(0, 0, 80,
80);</font></span></div>
<div dir="ltr" align="left"><span></span> </div>
<div dir="ltr" align="left"><span>Hope this helps.
:)</span></div>
<div dir="ltr" align="left"><span></span> </div>
<div dir="ltr" align="left"><span>Best
regards,</span></div>
<div dir="ltr" align="left"><span>Paul</span></div></span></div></font></span></div><font color="#0000ff" face="Arial" size="2"></font><br>
<blockquote style="padding-left: 5px; margin-left: 5px; border-left: 2px solid rgb(0, 0, 255); margin-right: 0px;">
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> <a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a>
[mailto:<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a>] <b>On Behalf Of </b>Yves
Glodt<br><b>Sent:</b> 9. juli 2010 15:21<br><b>To:</b> The OpenCms mailing
list<br><b>Subject:</b> Re: [opencms-dev] Photo album overview to crop
images<br></font><br></div><div><div></div><div class="h5">
<div></div>I tried the following code down here in the template of my
photoalbum. Unfortulately it fails with:<br><br>"The method
setDetailImageScaler(CmsImageScaler) from the type CmsPhotoAlbumConfiguration
is not visible"<br><br>Anybody got a hint for me... :-) ?<br><br>Best
regards,<br>Yves<br><br><br><i>CmsImageScaler scaler = new
CmsImageScaler();<br>scaler.setQuality(90);<br>scaler.setType(2);<br>scaler.setCropArea(0,0,80,80);<br><br><br>CmsPhotoAlbumConfiguration
configuration = new
CmsPhotoAlbumConfiguration();<br>configuration.setDetailImageScaler(scaler);
<span style="color: rgb(255, 0, 0);">// it fails
here</span><br><br>cms.setConfiguration(configuration);<br>//cms.getConfiguration().getDetailImageScaler().setType(2);<br>//cms.getConfiguration().getDetailImageScaler().setCropArea(0,0,80,80);<br><br></i>...<br><br>cms.displayAlbum();<br>
<br><br><br><br>
<div class="gmail_quote">On 6 July 2010 09:57, Yves Glodt <span dir="ltr"><<a href="mailto:yg@mind.lu" target="_blank">yg@mind.lu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="padding-left: 1ex; margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);">Bumping...<br><br>In
fact, to clarify, I need to show the images in the gallery overview in a
square shape (100x100px), not rectangle.<br><br>Doing some research I found
that I can probably edit the template used for the photo album and create a
custom instance of CmsImageScaler.<br><br>Is that possible? Are there any
examples around?<br><br>Best regards,<br><font color="#888888">Yves</font>
<div>
<div></div>
<div><br><br>
<div class="gmail_quote">On 22 June 2010 10:28, Yves Glodt <span dir="ltr"><<a href="mailto:yg@mind.lu" target="_blank">yg@mind.lu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="padding-left: 1ex; margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);">Hello,<br><br>is
it possible to have the photoalbum crop the images in the overview?<br>(I
have a situation where the overview should have square images
only.)<br><br>Best regards,<br><font color="#888888">Yves<br></font></blockquote></div><br></div></div></blockquote></div><br></div></div></blockquote></div>
<br></blockquote></div><br>