CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Feature #2881

Extract infos from folder name

Added by Georg Leitner about 4 years ago. Updated over 2 years ago.

Status:New Start date:2009-02-23
Priority:Could have Due date:
Assignee:- % Done:

0%

Category:Frontend
Target version:-
Votes: 0

Description

Hi Georg!

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...

image file:
- 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

folder:
- convert underscores to spaces = 20090317 my album
- extract/remove date = my album
- ucfirst = My album

LG Georg

Also available in: Atom PDF