• Anonymous
  • Login
  • Register
DominoWiki - Feature Request: Support for spaces in page titles


A suggestion for a small change to better support spaces in page titles ...

There seems to be some inconsistency in the way spaces are treated, in that the square brackets syntax replaces spaces with underscores, but the rest of the system doesn't. So this suggestion is to always replace spaces with underscores, which involves two small changes:

a) Changing the createBlankPage JavaScript function as follows:
function createBlankPage()
{
var pg = prompt("Please provide a title for your page", "");

if((pg=="") || (pg==null))
{
return;
}
else
{
pg = pg.replace(/ /g, "_");
document.location = "/dev/testwiki.nsf/wiki?openform&page=" + pg;
}
}
(The new line is the pg = ... line)

b) in the Web\Page header subform, making the computed title strip out underscores and replace them with spaces e.g.
@ReplaceSubstring(Subject; "_"; " ")

This way, internally underscores are always used, but the user never actually has to enter them, and never actually sees them either. So they can create a page as "my test page", and link to it using double brackets of [[my test page]], and it all 'just works'.

For completeness, the href links in the web-facing views could also be updated to replace the underscores with spaces too.



Taken Actions by Owners



Documents
In this field you can enter the actual request.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.
In this field owners can describe what they have done or want to do.

You can use the rich text editor for rich text formating. You can also enter HTML to embed objects, e.g. to embed a YouTube video or a screenshot of the project. In this case use '[' and ']' to mark the passthrough HTML as such.

Please note that the first time you use the new UI your description is converted from rich text to MIME. You might want to copy and paste the raw plain text from the old UI in the new UI so that you don't loose information.