Hash Magic URIs for Wikidot

1315484557|%A, %e %B %Y, %H:%M

The Wikidot Team just sneaked in a new feature - and it's extremely useful! ;-)

Blog post written for: Advanced users. Most site owners will never use these directly.

Previously, if you wanted to open the page editor using a URI, you would type something like this into a live template or ListPages module body:

[/%%fullname%%/edit/true Edit this page]

Thanks to Hash Magic URIs, recently implemented by Wikidot, you can achieve the same result using a slightly different method:

[/%%fullname%%#_editpage Edit this page]

So, what's the difference? I've run a few tests and it seems that both methods work - so if the intent is to phase out the older and more established /edit/true links, it isn't happening any time soon. Wikidot is likely to continue supporting that method.

What is most interesting are the other options that are available. Editing the page via URI was already possible, it's nothing new. But Hash Magic URIs introduces a number of new options that we haven't had access to until now:

Option Description Scope Previous (URI) Previous (other)
#_editpage Opens the editor Page /edit/true [[button edit]]
#_edittags Opens the tag editor Page /tags/new-tags [[button tags]]
#_history Displays the history Page None [[button history]]
#_files List files Page None [[button files]]
#_sitetools Opens the site tools information Site None None
#_wantedpages Lists wanted pages Site None [[module WantedPages]]
#_orphanedpages Lists orphaned pages Site None [[module OrphanedPages]]
#_draftpages Lists draft pages Site None [[module ListDrafts]]1

That's right… you can now link directly to the tag editor, history list and file list using the link syntax! In addition, a number of other options are available which display general information about the site.

For the Wikidot Community, this new feature is particularly useful. You can access information about a user's website, even if their permissions are not set up correctly. The end result is that problems can be solved faster than ever before!

Even with a JavaScript-based bookmark, information about attached files and orphaned pages was not accessible unless you had access to the page-options link and clicked on that.

Image source: PhotoBucket: PhntmBlackIce (unmodified version)


Leave a comment

Add a New Comment
or Sign in as Wikidot user
(will not be published)
- +
Page tags: wikidot
Please read the Legal Guidelines which covers all content found on this page.