Smartsite SXML | Copy Code |
---|---|
<se:dir rem="shows the contents of the images folder"> <se:parameters> <se:parameter name="format"> <se:flags strictfields="false"/> <se:rowformat expression="this.isdirectory()==false"> <tr> <td class="file type_{string.substring(this.field(extension),1)}">{this.title()}</td> <td>{string.formatsize(this.size())}</td> <td>{this.field(extension)}</td> </tr> </se:rowformat> <se:rowformat expression="this.isdirectory()==true"> <tr> <td colspan="3" class="folder">{this.title()}</td> </tr> </se:rowformat> </se:parameter> <se:parameter name="resultformat"> <table class="dir"> <tr><th>Filename</th><th>Size</th><th>Extension</th></tr> {this.result()} </table> </se:parameter> <se:parameter name="path">/Functionaltests/DIR</se:parameter> </se:parameters> </se:dir> |
Example Result | Copy Code |
---|---|
<table class="dir"> <tr><th>Filename</th><th>Size</th><th>Extension</th></tr> <tr> <td class="file type_txt">1.txt</td> <td></td> <td>.txt</td> </tr> <tr> <td class="file type_xml">2329.xml</td> <td>92 B</td> <td>.xml</td> </tr> <tr> <td class="file type_jpg">2Leeuwinnen.jpg</td> <td>165.08 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">ArushaFallsTop.jpg</td> <td>106.99 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">BabyElephantCrossing.jpg</td> <td>111.63 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">BlackRhino.jpg</td> <td>116.42 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">Elephant.jpg</td> <td>130.92 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">ElephantFront.jpg</td> <td>130.63 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">Gekko.jpg</td> <td>80.80 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">Giraffe3DayBaby.jpg</td> <td>158.11 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">GiraffeTong.jpg</td> <td>153.01 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">HikingMeru.jpg</td> <td>211.47 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">HippoMomnBaby.jpg</td> <td>152.65 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">KiwengaBeach.jpg</td> <td>103.27 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">KiwengaWide.jpg</td> <td>73.42 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">KneelingWarthog.jpg</td> <td>193.55 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">LeeuwenBuik.jpg</td> <td>167.24 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">LeeuwLinks.jpg</td> <td>164.92 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">LeeuwVoor.jpg</td> <td>161.77 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">LionessAndCub_e.jpg</td> <td>165.33 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">LionessCub.jpg</td> <td>132.13 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_html">Parents.html</td> <td>3 B</td> <td>.html</td> </tr> <tr> <td class="file type_xml">Parents.xml</td> <td>235 B</td> <td>.xml</td> </tr> <tr> <td class="file type_xsl">Parents.xsl</td> <td>1.54 kB</td> <td>.xsl</td> </tr> <tr> <td class="file type_jpg">PinkLizzy.jpg</td> <td>150.85 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_html">readme.html</td> <td>1.75 kB</td> <td>.html</td> </tr> <tr> <td class="file type_html">result.html</td> <td>2.79 kB</td> <td>.html</td> </tr> <tr> <td class="file type_jpg">SerengettiRainbow.jpg</td> <td>106.40 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_chm">Smartsite.Runtime.Modules.chm</td> <td>376.44 kB</td> <td>.chm</td> </tr> <tr> <td class="file type_jpg">SunSetShadowBoats.jpg</td> <td>76.59 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">Waterbuffels.jpg</td> <td>100.45 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">ZebrasWalking.jpg</td> <td>116.20 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_jpg">ZeeSter.jpg</td> <td>139.46 kB</td> <td>.jpg</td> </tr> <tr> <td class="file type_js">ZipSite.js</td> <td>9.68 kB</td> <td>.js</td> </tr> <tr> <td class="file type_vbs">ZipSite.vbs</td> <td>2.76 kB</td> <td>.vbs</td> </tr> </table> |