2012-02-03 74 views
1

我使用MODx Revolution ver.2.20和Gallery module ver.1.4.0。 所以,我需要得到一個文件夾中的圖像數量。我GOOGLE了它,但我沒有找到任何工作的解決方案。MODX圖庫:如何獲取文件夾中的圖像數量?

我該如何得到它?謝謝。

好的,這是解決方案。

片段呼叫

[[!GalleryAlbums? &parent=`5` &showAll=`1` &sort=`rank` &dir=`ASC` &limit=`50` &rowTpl=`b-top-img`]] 

B-頂級IMG片段

 <!-- p-cover --> 
     <div class="p-cover [[+id]]"> 
     [[!Gallery? &album=`[[+id]]` &thumbWidth=`300px` &thumbHeight=`300px` &thumbTpl=`b-middle-img`]] 
     </div> 
     <!-- /p-cover --> 

B-中間IMG

 <div class="p"><img src="[[+thumbnail]]" alt="[[+name]]" /></div> 

回答

相關問題