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
Add modifiers to get information from filepath: dirname, basename, fi… #14198
Add modifiers to get information from filepath: dirname, basename, fi… #14198
Conversation
One thing to make this PR even better: is it possible to add some tests for the new modifiers in |
…lename, extension
Done. Since the related files have not changed since the last commit push it force :) |
Hey @kudashevs, have you signed the CLA before? Please do via https://develop.modx.com/contribute/cla/ or let me know what username you used. Thanks! |
@Mark-H i didn't sign it before. Just signed it :) |
Thanks :) |
…lename, extension [modxcms#14198] * upstream/pr/14198: Add modifiers to get information from filepath: dirname, basename, filename, extension
What does it do?
Adds group of modifiers to work with placeholders contain filepath. This modifiers allow:
In fact this is a wrapper for PHP's pathinfo() function.
Why is it needed?
Using modifiers more convenient and simple way to work with placeholders contain filepath.
Related issue(s)/PR(s)
PR #14194 updated to clean merge with 3.x branch.