Duplicating with unique fields #724
-
DescriptionI am getting an error when duplicating an item with a unique value. I found that Statamic has Unique Entry/User/Term Value validation rules which I can set on a field. Hopefully this will make sure a unique value is used while duplicating, but which one should I use for Runway resources? EnvironmentEnvironment Cache Drivers Storage Sentry Statamic Statamic Addons Statamic Eloquent Driver |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
I'm not entirely sure I'm understanding what you mean... If you want to make sure a field isn't copied when duplicating a model, you can disable the "Duplicate" toggle on the field:
If you want to ensure a field's value is unique across all models, you can use Laravel's |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.


Ahh, I understand you now.
Runway doesn't really have a concept of "slugs" in the same way that entries do. You can add a
slugfield to a blueprint, but it doesn't get treated differently to any other field.This is why Runway doesn't do the "appending" stuff out-of-the-box. However, you can achie…