Skip to content
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

Required CmsPage propertie? #77

Closed
willemhoog opened this issue Dec 21, 2015 · 1 comment
Closed

Required CmsPage propertie? #77

willemhoog opened this issue Dec 21, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@willemhoog
Copy link

@willemhoog willemhoog commented Dec 21, 2015

Hey,

I have searched for it but I can't find it.
Is it possible in a page type to set required value for a property?
For example the headline can't not be empty with published or saved.

[Property("Headline")]
public virtual StringProperty Headline { get; set; }

@fschultz
Copy link
Contributor

@fschultz fschultz commented Dec 21, 2015

At the moment there's no generic way to set properties to required. This is a feature that is clearly lacking. I'm flagging this issue for the next major release and will be adding the ability to set [Required] attribute to the properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants