Add The Link

< Community Portal

If you host a website, you may want to add the universal edit button link to every page that can be edited. This page explains how.

This is the link tag as it appears on the the c2.com WelcomeVisitors page:



Since  isn't a registered MIME type yet, some wikis (MediaWiki, Socialtext) are implementing with   for now, pending registration of. The link tag looks like this:



Note that the title attribute appears in a popup when you hover over the button, so if your site requires logging in to edit, then if the user isn't logged in you could have something like title="Log in to edit this page!". The fragment should not appear in the read only pages. The reference after href is a relative reference that should bring to the edit page. The edit page can be a usual Wiki edit form but can also be any other page that accepts at least some input from the user - the standard is flexible enough not to put any restrictions on this. As the reference can potentially contain the header of the user page, it is important to check it it does not contain non-URL characters like < and > or maybe better use numeric id.

Both methods work with the current version of the Firefox plugin.

There are also some other suggestions about what the rel and type values should be. Feel free to add your input about that or anything else here.

These link tags announce the availability of an alternate representation, type  or , which is the edit page for this page.

Implementing it for different web applications
Producing these tag requires some logic which will differ for each wiki or weblog or other web application: the  part of this tag should specify the edit page that corresponds with the page being viewed. Each website will approach this substitution differently.


 * Add The Link To TheWikiWay Wiki
 * Add The Link To MediaWiki
 * Add the Link to PhpWiki
 * Add the Link to PmWiki
 * Wordpress plugin
 * Drupal plugin Drupal plugin
 * Add The Link To EditMe