-
Notifications
You must be signed in to change notification settings - Fork 638
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
FR: Member Groups: Handle format validity #2276
Comments
Handles currently don’t allow hyphens because there are cases where they are referenced as an object property (e.g. There are cases where that doesn’t apply though, like user groups, where the handle is always referenced in a string. So there’s no technical reason we couldn’t allow hyphens in those cases. The biggest argument against it that I can think of is, it overloads the word “handle” a bit, which currently has a pretty consistent definition and syntax. There is already one exception in Craft 3 – plugin handles are now kebab-cased instead of camelCased. |
Perhaps there is scope for a new word to be added, to define a handle always referenced as a string? 'Shandle' or 'Handing' :P I guess using 'Slug' here would be weird, as that seems to be defined always tied to the front-end? |
Would it be possible to just always allow hyphens in handles with a caveat that you'd have to reference them as |
@Rias500 That’s not a bad idea, but there are a couple caveats. Currently all custom field handles get stored as public properties on the dynamically-generated ContentBehavior class, which is what |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Description
Hi there, I would like to be able to create a site using Member Groups and their handles.
e.g.
https://example.com/{example-member-group-handle}/example/{slug}
Unfortunately, Member Group handles currently disallow hyphens, could this possibly be tweaked?
Additional info
The text was updated successfully, but these errors were encountered: