We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38705
    • 101 Posts
    Hi, i use the FileLister extra to create a list of images in a certain directory.
    The FileLister-chunk does a pThumb resizing of the image. All is well.
    However, every 10 minutes a file gets added to the directory (ascending-filenames eg 185-1000.jpg, 185-1010.jpg (yeardaynumber-hourminutes.jpg).
    If a filelister request is made (a pageload) while the image is in the process of uploading i get corrupted thumbs (just a grey image).

    To counter that i can afford to skip the newest addition (file number 1) and start thumbnailing from the second in row onward.

    My question: how can i make FileLister skip the file that is being upload. If it takes the second image it is also fine...

    Tried [[+id]] or [[+idx]] as placeholders, but they are not defined in FileLister.
    Tried hacking FileLister a bit to create placeholder [[+flid]] but the output is always 1, so i must be placing it in the wrong spot.

    In the documentation i can not find anything about placeholders like [[+id]] or something.
    Maybe, since &limit=`x` is an option, something like &offset=`x` kan be created in the snippet?

    Which coding genius can help me here? ;-)
      Addict since 2012....