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)



Too bad the page doesn't dynamically check for the hash value. Otherwise, I can think of a lot of applications for this feature!
~ Kenneth Tsang (曾勁驊), 15 years and counting…
kTsang.tk - view my blog, watch my videos, see my pictures :D
Wikidot Mobile Editor | @tsangk Twitter | EziWebs - Wikidot… but not really
Agreed. Seems I need to force-reload the page before it's recognised.
Shane Smith ★ Website: Wikidot Development & Programming. ★ STE Wikidot Editor: Windows. Mac. Linux. ★ Twitter. Google+.
Can this feature be seen in action somewhere?
Vir bonus miser vocari, at esse non potest miser.
Sure. Instead of using the ListDrafts module, I can just post a link that does the exact same thing!
Show drafts
Is that what you mean?
Shane Smith ★ Website: Wikidot Development & Programming. ★ STE Wikidot Editor: Windows. Mac. Linux. ★ Twitter. Google+.
Hm, I am sorry, but I don/t know what drafts stands for. :)
Something that I know? You mentioned something about Recent Changes…
Vir bonus miser vocari, at esse non potest miser.
When you modify a page, you can save a draft of the page now :) This is basically an early, unpublished copy of the page.
According to dictionary.com, this is one definition:
Look for the "Save Draft" button at the bottom of your pages when you are editing. Automatically, a draft is saved every 1 minute as well in case you lose Internet connection.
Shane Smith ★ Website: Wikidot Development & Programming. ★ STE Wikidot Editor: Windows. Mac. Linux. ★ Twitter. Google+.
hehe… I know what is the meaning of the word "draft", and I know for the button Save draft, and also I know more or less whats it for. What I dont know is why one would want to list drafts. What do you get with it?
Then, if theres a module for it, then what does this have that a module doesnt have?
Vir bonus miser vocari, at esse non potest miser.
This means that you can show a list of drafts without having to waste a page. If you care about keeping your site clean and using the minimal number of pages as possible, this is one way to avoid creating yet another administration page.
It also means that you can check the list of drafts even when you don't have permission to edit pages. On someone else's site, for example.
Shane Smith ★ Website: Wikidot Development & Programming. ★ STE Wikidot Editor: Windows. Mac. Linux. ★ Twitter. Google+.
Thanks, Shane. This sounds excellent. I will check it out as soon as I can (I´m going back home in a week).
Vir bonus miser vocari, at esse non potest miser.
To further clarify, the #_draftpages hash tag gives you the same result as the new function that was added under "Site tools" in the page options (we now have wanted pages, orphaned pages and draft pages). Using the hash tag allows to to easily make that option available in cases where you've hidden the page options, but want an easy link to list them. The same logic would apply to creating links to #_wantedpages and #_orphanedpages.
Free Wikidot Applications · Your Shared Photo Gallery · Your Personal Blog
I think i can use this new feature in my "page manager":
Yes, that should work ;-)
Shane Smith ★ Website: Wikidot Development & Programming. ★ STE Wikidot Editor: Windows. Mac. Linux. ★ Twitter. Google+.
Post preview:
Close preview