I´d like to use different slide layouts within one gallery based on the naming convention of the image files. E.g. images including "_pan" in the file name should be shown in a different layout than others. I tried the following code (simplified) inside the slide.htt:
example 1:
<%
if ( imagePath.includes("_pan") ) {
out.println(imagePath + " is a panorama.");
}
%>
example 2:
<%
if ( "$imagePath".includes("_pan") ) {
out.println(imagePath + " is a panorama.");
}
%>
With both I get the same error message when I try to create the album:
reflection error: bsh.ReflectError: Method includes( java.lang.String ) not found in class'java.lang.String'
Please let me know, what I´m doing wrong! Thanks!
Dietrich
I´m not a programmer and don´t have any experience with java. I´m using, whatever comes with JAlbum 5.1 and can´t tell whether it´s BeanShell or Groovy. I just need the snippet of code that allows me to run the if query properly.