Default web path formatting

Not sure if it's just our system config or a standard thing, but is there are a way to define the default formatting of system generated web paths?


Currently it uses an underscore to replace all spaces, but I was wondering if we can change it to a hyphen as default. e.g. page-name instead of page_name



If possible is there then a way to get the system to update all existing pages to replace the underscore with a hyphen? Would this end up causing issues with /_admin becoming /-admin? etc

[quote]
Not sure if it's just our system config or a standard thing, but is there are a way to define the default formatting of system generated web paths?



Currently it uses an underscore to replace all spaces, but I was wondering if we can change it to a hyphen as default. e.g. page-name instead of page_name



If possible is there then a way to get the system to update all existing pages to replace the underscore with a hyphen? Would this end up causing issues with /_admin becoming /-admin? etc

[/quote]

Hi,

You can surely change it. It's the "System Web Path Separator" on System configuration screen.

You can update the webpath in sq_ast_path table to replace underscore with hyphen and no it would not affect the _admin/_edit.



HTH,



Ash

[quote]
You can update the webpath in sq_ast_path table to replace underscore with hyphen and no it would not affect the _admin/_edit.

[/quote]



If you update sq_ast_path with a DB query you will probably also need to regenerate lookups for the entire system (or do the same replace on sq_ast_lookup and sq_ast_lookup_value).

Thanks Ash and Dan that helps a lot.


Cheers