Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by pepys on May 25, 2009 02:11
open dhtmlx forum
:: pepysDHTMLX :: myFolders.setItemType("fthumbs");

Hi,

I've started to use dhtmlxFolders, but I want to use for thumbs my pictures, not created using something like thumbs_creator.php. If I have a folder /thumbs, can I use those pictures to display in my folder grid?
Answer posted by dhxSupport on May 25, 2009 07:30
You can adjust how src attribute defined in fthumbs.xsl
Currently it has
<xsl:attribute name="src"><xsl:value-of select="$thumbs_creator_url"/>?img=<xsl:value-of select="$photos_rel_dir"/><xsl:value-of select="./@name"/>&amp;width=94&amp;height=94</xsl:attribute>

Which can be replaced with 
<xsl:attribute name="src"><xsl:value-of select="./@thumb"/></xsl:attribute>

With such code, it will use thumb attribute in XML, as path to thumbnail image.