Henner7 Posted October 15, 2017 Share Posted October 15, 2017 Good morning, there is a function getDisplayBasename in InputfieldFile.module which has a default parameter $maxLength = 25. However I can not see to change this value as from the backend. I suggest, to set the default value to 100 (nowadays screens are larger) or making this parameter available to the backend. Anybody knows if there is a bugtracker in processwire where I can add feature requests or improvements? Christian Link to comment Share on other sites More sharing options...
abdus Posted October 15, 2017 Share Posted October 15, 2017 4 minutes ago, Henner7 said: a bugtracker in processwire where I can add feature requests or improvements https://github.com/processwire/processwire-issues/issues 1 Link to comment Share on other sites More sharing options...
Robin S Posted October 15, 2017 Share Posted October 15, 2017 Welcome to the forums @Henner7, The link @abdus gave is actually for bug reports. Feature requests go here: https://github.com/processwire/processwire-requests/issues There is already a request to remove the default truncation: https://github.com/processwire/processwire-requests/issues/83 Besides the solution from BitPoet that you'll find in the feature request, you can disable truncation for all File inputfields by adding a hook in /site/ready.php: $wire->addHookBefore('InputfieldFile::render', function(HookEvent $event) { $inputfield = $event->object; $inputfield->noShortName = true; }); 4 Link to comment Share on other sites More sharing options...
Henner7 Posted October 15, 2017 Author Share Posted October 15, 2017 3 hours ago, Robin S said: Besides the solution from BitPoet that you'll find in the feature request, you can disable truncation for all File inputfields by adding a hook in /site/ready.php Thank you so much for your fast reply. I am glad that I can rely on such a good community. My processwire sites: hendrich.org and tsvwesthausen.de Link to comment Share on other sites More sharing options...
szabesz Posted October 15, 2017 Share Posted October 15, 2017 @tpr's AdminOnSteroids can fix it along with a useful related tweak: https://github.com/rolandtoth/AdminOnSteroids/wiki#filefieldtweaks "Disable filename truncation for File fields: filenames displayed are cut to 20 characters by default. This tweak removes this limitation and shows the full name. If enabled, the delete button is not positioned to the right but right after the filename to avoid display issues when the filename spans to multiple rows." 2 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now