----- Original Message -----
From: "Tom Scheidt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 19, 2000 10:55 AM


> Do you know if I can limit the id to the last
> 3 letters, rather than the first?  My images have
> _xl, _l etc. on the end.
>
> Thanks for your help, Karl.
> -----------------------------------------------------
>
> I'm just getting started, but managed to use
> the following to display only JPG's, and then
> only ones starting with "tn_" (my thumbnails):
>
> <ul>
> <dtml-in "tester.fileValues()">
>   <dtml-if "type=='image/jpeg'">
>     <dtml-if "id[0:3]=='tn_'">
>       <img src="<dtml-var "parent.id">/<dtml-var url>">
>     </dtml-if>
>   </dtml-if>
> </dtml-in>
> </ul>
>
> (my localfs instance is called "tester" and is
> in the same folder with the dtml page containing this code)
>
> Karl
>
>
> Tom Scheidt   |   www.falsemirror.com   |   [EMAIL PROTECTED]
> --------------------------------------------------------------------------
--
> -----------
>


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to