Manila Shortcuts

Based upon an idea from the Userland’s venerated Manila CMS – this plugin simply allows you to put any page’s title in quotes and it will automatically link to that page.

It accomplishes this by checking each quoted word or phrase in your content against a list of your current page titles (the headline at the top of a page). When it finds a match it converts the plain quoted text in to a link to that page.

So if you had a page called Spring Cleanup and you put it in quotes like this:

"Spring Cleanup"

It would look like this:

Spring Cleanup

If you decide to change the title of the story to Spring Clean – then the above trick won’t work.

For example – if you quoted a word or phrase that is not a WordPress story title like this:

"Spring Flowers"

Then the plugin would not affect the quoted text – it would appear as a quoted phrase just as you had typed it. With one exception – WordPress encodes pairs of quotes with typographers quotes – these get replaced with straight quotes on all pages when this plugin is active. Here is the difference:

“Hello Kitty” – These are how quotes appear without this plugin being active.

"Hello Kitty" – These are the straight quotes you get when this plugin is active.

Key differences with the real ‘Shortcuts’ feature in Manila

Manila maintains a list, or index of site pages, images and user-input links which can includes links off the site. This plugin does a simple check of current page titles and only works when a match is found. It does not work of images and there is no way to add to the list of shortcuts with this plugin.

This plugin is still under development and testing, and is not yet available for release.

Leave a Reply

You must be logged in to post a comment.