Rename Ghost Pages

We've resisted renaming pages because it introduces so many complexities with respect to persistent and shared resources. Ghost pages are immune to these issues and will offer solutions to some of the most demanding cases.

Wiki offers to create a page but gets the preferred title case wrong. So, fix it before creating the page.

We wish to materialize an old revision as a page in its own right. So, fix the revisions title before forking it from history.

We search for something and find the search result is almost exactly the bibliography we intend to write. So, fix the title of the search result and fork it into existance.

# Details

Ghost pages only enable content editable for titles.

On completion, change the page json in multiple places to reflect the new title.

Possibly omit ghost pages from the lineup url so that this need not be corrected when edited. Existing uses of this information fail except for revisions.

ToDo: Check all Rename Pages concerns to be sure they are avoided.

# Code

$page.hasClass('ghost') == true

$page.data('data').title = rename

heading = $page.find('h1 span').get(0) heading.innerHTML = heading.innerHTML .replace(asSlug(title),asSlug(rename) .replace(title,rename)

wiki.lineup.atKey($page.data('key')).getRawPage()

window.location ??