Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow custom folder names based on user data #9

Open
mec0-de opened this issue Nov 15, 2016 · 3 comments
Open

Allow custom folder names based on user data #9

mec0-de opened this issue Nov 15, 2016 · 3 comments

Comments

@mec0-de
Copy link

mec0-de commented Nov 15, 2016

In my Typo3-installation I´m not using the field "name" in user data. Instead of that we use "firstname" and "lastname" for seperating both parts.
But in a plupload config file it is only possible to choose from "username" and "name" as "folder from user data". It would be great if you could add this option.

Beyond that I need more complex user dependent folder names like:
title_of_config_file/firstname_lastname/current_date_time/
Maybe you could add more flexibility to this setting in the future so that I don´t need to edit the sourcecode to meet this requirement.

Thanks for your great work!

@fnagel
Copy link
Owner

fnagel commented Nov 20, 2016

Seems like a very good idea to add something more flexible for directory configuration. Any idea how to achieve this? I would rather not introduce TypoScript. Perhaps some MARKERs in a string, parsed with regex?

I'm currently pretty busy with updating all my extension to TYPO3 8.x but I would happily merge a PR bringing more flexibility to this part of the extension!

For now, would adding an option with FIRSTNNAME_LASTNAME as naming scheme? This would be an easy task I guess. That's something I could add with the next minor or even patch release.

Please note there seems to be a bug related to this: #8

@mec0-de
Copy link
Author

mec0-de commented Nov 20, 2016

MARKERs in a string sounds good for me. Maybe these would make sense:

  • {firstName}, {lastName}, {name}, {userName}
  • {current_date}, {current_time}
  • {config_name}

It would be great, if you could implement this some time later. I would be happy to help, but actually I don´t have enough skills in developing typo3 extensions. I´m working on this part :-)

The FIRSTNNAME_LASTNAME naming scheme would help for the short term but adding a date and time would be perfect.

As the mentioned bug was reported by me, I am looking forward to a patch (if possible with the naming scheme included).

I hope my comment doesn´t sound demanding. I´m very happy using your extension.
Again thanks for your work!

@fnagel
Copy link
Owner

fnagel commented Nov 21, 2016

I hope my comment doesn´t sound demanding. I´m very happy using your extension.

No problem at all. I will definitely fix the bug (sorry, didn't notice its you) soon and will try to add FIRSTNNAME_LASTNAME too. Added an item on my todo list :-)

Adding FIRSTNNAME_LASTNAME_TIMESTAMP seems a little to specific and should be solved by adding a more flexible naming scheme.

@fnagel fnagel changed the title Feature Request regarding "Folder from user data" Allow custom folder names based on user data Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants