UNC as Custom Field Type #10163
Unanswered
lonelyadmin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I added a UNC option as a custom field type. What would it take to make that value "clickable" when viewing the asset?
Added in app/Models/CustomField.php
'UNC' => 'regex:/^\\\\\\\\[a-zA-Z0-9-]+(\\\\[a-zA-Z0-9
~!@#$%^&(){}'._-]+([ ]+[a-zA-Z0-9~!@#$%^&(){}\'._-]+)*)+$/',
I'm guessing it's just adding the file:// before the ${UNC}, but I have no idea where to do that. Or, does URL regex need to be tweaked to handle "file://"?
Beta Was this translation helpful? Give feedback.
All reactions