OrchardCMS / Orchard

Orchard is a free, open source, community-focused Content Management System built on the ASP.NET MVC platform.
https://orchardproject.net
BSD 3-Clause "New" or "Revised" License
2.38k stars 1.12k forks source link

Generated custom content type ID needs to remove spaces instead of changing them into dashes #687

Closed orchardbot closed 9 years ago

orchardbot commented 13 years ago

@bleroy created: https://orchard.codeplex.com/workitem/16855

The dashes make it impossible to override the rendering of a custom type.

Instead of "Book Review" to be identified by "Book-Review" it should be "BookReview".

Louis just confirmed the problem.

orchardbot commented 13 years ago

@bleroy commented:

Please do the same for parts and fields.

orchardbot commented 13 years ago

@infinitiesloop commented:

  1. Parts have no concept of Name and DisplayName, only Name, and this is already filtered for special characters. DisplayName is derived from Name dynamically on the fly when it is needed. Nothing to do here.
  2. Fields also only have a name, no display name, but we were not filtering on special characters. We now do, just like parts.
orchardbot commented 13 years ago

@infinitiesloop closed and commented:

363c02f77859