AddLink Bookmarklet Recipe

 cookbook/
 |-- cmsb-addlink.php
 `-- cmsb-addlink-README.txt

The AddLink Bookmarklet recipe makes it easy add links to your website by clicking on a bookmarklet in your browser.

From the recipe's page:

Your browser will be taken to your site in edit mode. By default the page's title will become a definition term and the text you highlighted will become the definition for the term.

A bookmarklet-saved bookmark looks like this:

Bookmarklet - Wikipedia, the free encyclopedia
A bookmarklet is a bookmark stored in a web browser that contains JavaScript commands that add new features to the browser.

Put the bookmarklet link in a page with

(:addlink:)

or

(:if auth edit:)(:addlink:)(:ifend:)

Installation

All you need to do is put the script in the cookbook/ directory.

You can do it from the command line like this:

cd site/local/   # or wherever your local/ directory is
wget http://www.haganfox.net/pmwfiles/CMSModeAddLink-latest.tar.gz
tar -zxvf CMSModeAddLink-latest.tar.gz -C ../   # extract to main directory

Your pre-configured config.php configuration file will detect that the recipe file is present and load it automatically. Normally you would add some lines in your config.php configuration file to load the recipe script.

Some configuration options are documented on the recipe's page on pmwiki.org.

Page last modified on December 21, 2018, at 12:38 PM
Powered by: PmWiki and Quick Wiki CMS