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

Content Type Snippets generate incorrect property names #43

Closed
hades200082 opened this issue Nov 18, 2017 · 1 comment
Closed

Content Type Snippets generate incorrect property names #43

hades200082 opened this issue Nov 18, 2017 · 1 comment

Comments

@hades200082
Copy link
Contributor

Example

I have a content type snippet called "Meta Data" with elements "Description" and "Title"

When the generator runs it creates the following properties on the generated models:

        public const string TitleCodename = "meta_data__title";
        public const string DescriptionCodename = "meta_data__description";
        public string MetaDataPageTitle { get; set; }
        public string MetaDataDescription { get; set; }

The problem is with the "code name" properties... their property names should also be prefixed. Otherwise if I had multiple snippets with a "Description" or "Title" field the property names will conflict.

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

No branches or pull requests

3 participants