The directory-based listing is very intuitive and easy to use for non-technical people. However I am wondering if it is not possible to have a single info.sscctl file to replace the current system of having a file for each image uploaded? It might be a little easier for people to manage.
Something like:
------
File: image1.jpg
Title: The title to apply to this image
Caption: The caption to apply to this image
Link: http://example.com
File: image2.jpg
Title: The title to apply to this image
Caption: The caption to apply to this image
Link: http://example.com
----------
This method would also have the advantage of being a way to set the order. Of course, you would still need to keep the old way so as to not break existing slideshows.
Thanks very much for all your work on the module!
Comments
Comment #1
rhouse commentedHi, thanks for the suggestion.
I think it would be a really good way to do it, but unfortunately the logic of the existing code is to grab all the filenames and cycle through the lot in the order they appear (i.e. alphabetical). It was easy to include a call as each file is processed to a function to grab the matching control file. Grabbing a single control file first and then getting the matching image files would mean rewriting the logic with a different looping structure. One would have to decide what to do about missing files and files not mentioned in the control file. It could be done but the time needed is not worth it. Of course, if anyone wants to contribute the code, it will be gratefully received.