Replies: 1 comment 6 replies
-
At the moment it is possible to create a slug from multiple reference fields by providing an array (introduced in #22 ). I do not believe the plugin accepts relation fields for the reference field option. I will need to investigate this further. It does not support anything but the full text for them though. I am thinking to add in the option to provide your own transformation function, this way the plugin itself would not need to cover every possible combination use case. What do you think?
No worries, I deleted the duplicate. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to use slugify and create a UID that takes the attached fields from multiple relations and create a unique ID and such?
I want to have a unique id for each item that I make in my entry but to take for example the first 2 characters from category, 2 first from sub-category, 2 first from item name and add a 3-4 digit
or is this something that can be added as a feature to slugify? I am probably able to create this later on in the frontend but would love if it is possible to do it right away as I am making new entries.
sorry for the duplicate post on my work account didnt realize it haha
Beta Was this translation helpful? Give feedback.
All reactions