google-code-export / digitalus-cms

Automatically exported from code.google.com/p/digitalus-cms
1 stars 1 forks source link

Spaces in page names and URLs #159

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Page names should support spaces, but URLs should replace it by a
(configurable) replacement character like the underscore.

Because the hyphen is often used in page names ("User-Defined Types",
"Object-Relational Extensions", "Three-Valued Logic", "Auto-Increment
Numbers", "Not-Null Constraints", "Table-Based Solutions", ......) they are
no good replacement characters. The underscore should be used instead. This
allows reliable transformation from URLs to pages and vice versa.

Please *disallow* (white)spaces in URLs.

Original issue reported on code.google.com by kwut...@web.de on 2 May 2010 at 5:09

GoogleCodeExporter commented 9 years ago
You might also want to provide lowercase links. I think case-sensitivity in URLs
isn't very useful - at least for the standard CMS-generated URLs.

Original comment by kwut...@web.de on 2 May 2010 at 5:35

GoogleCodeExporter commented 9 years ago

Original comment by lowtower1974@gmail.com on 2 May 2010 at 10:51

GoogleCodeExporter commented 9 years ago
With coming changes to the code, empty spaces will be replaced with underscores 
in
urls (only affects the navigation).

Pages are case-insensitive by means that you cannot create two different pages 
with
the same case-insensitive name, e.g. 'Home' already exists => You cannot create 
pages
called 'hOmE' or 'HOME', etc.

So, I don't see any reason for the need to convert page names to lowercase.

If You want lowercase page names, simply create them as You want them.

Original comment by lowtower1974@gmail.com on 3 May 2010 at 9:33

GoogleCodeExporter commented 9 years ago

Original comment by lowtower1974@gmail.com on 3 May 2010 at 9:34

GoogleCodeExporter commented 9 years ago
Solved with r758

Original comment by lowtower1974@gmail.com on 3 May 2010 at 5:24