Extract infos from folder name
|Priority:||Could have||Due date:|
After evaluation nearly every gallery extension available I finally chose chgallery for a closer look and found some bugs and missing features. Please let me know how I can help to fix or implement. I've intermediate PHP skills and can spend some time.
What about an option to enable extraction of a date from the folder name and use it instead of "LAST-CHANGED"-Date of the folder if the folder starts with 'YYMMDD_'? This would be very useful if you dont't wanna give your users control over the plugin, dont't want them to create textfiles or you're just lazy and just want to upload images.
The function getDescription() only returns a value if a file containing descriptions for directories and files are present. This could be easily extended to return e.g. the name of the folder/file if no info file is found. That would also fill the title-tag in the cooliris rss-feed (which is now blank if no file is present).
From e.g. 'fileadmin/images/20090317_my_album/i_am_a_testimg.jpg' we could...
- use pathinfo()->['filename'] = i_am_a_testimg.jpg
- use pathinfo()->['basename'] (no file extension) = i_am_a_testimg
- convert underscores to spaces = i am a testimg
- ucfirst = I am a testimg
- convert underscores to spaces = 20090317 my album
- extract/remove date = my album
- ucfirst = My album