Forum

Thread tagged as: Question

Default to using underscore for whitespaces in new file's name

When creating a new page in Perch Admin, it uses a hyphen to replace any whitespaces when generating the file. E. g. "Hello world" becomes "hello-world". Is it possible to have it default to an underscore instead, thus generating "hello_world"? (I know, I could change that manually for every page I created. But I do not want to bother the client with that.)

Nils Mielke

Nils Mielke 3 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

What would be the reason for that? Normally underscores are avoided in URLs because they can be hard to read, especially when a URL gets underlined.

Well, from my perspective it is kind of wrong, as a hyphen is an actual element of language, with its own terms of usage (especially in the German language, I guess. Adding in hyphens can turn a verb into a noun). I think, the underscore is therefore a much better replacement for a whitespace.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, noted. Perch doesn't offer that currently.

Okay, thanks.

Drew McLellan

Drew McLellan 2638 points
Perch Support

It's logged as bug #267