BarCode

Summary: Easily create barcodes inside wiki pages
Version: 2007-07-22
Prerequisites: pmwiki 2.2.0 beta
Status: works
Maintainer: Luigi
Discussion: BarCode-Talk
Categories: Images

Questions answered by this recipe

How to generate barcode images by just typing their values into a wiki page.

Description

In order to let your wiki pages generate and display barcodes, just follow these simple steps:

  1. Download and install any barcode-generating script (here you'll find an open-source example, please feel free to google for more)
  2. Test your install by typing the proper url into your browser, something like
    • http://www.example.com/barcode/barcode.php?code=1234456694147&mode=png&scale=3
      a barcode image should show. If it does, paste the same url into your wiki page. As you save, the url will show on your page.
  3. Add "&.png" to the url in order to fool your wiki and let it print the image, and not the url itself
    • http://www.example.com/barcode/barcode.php?code=1234456694147&mode=png&scale=3&.png
      a barcode should show now, and not the url any more.
  4. If you like to have your barcode fetch its value from some other page, please
    • define some variable in Group.SomePage (example "Name: John")
    • reference your variable this way http://www.example.com/barcode/barcode.php?code={Group.SomePage$:Name}&mode=png&scale=3&.png

Notes

Some more details and live samples are available at http://www.kirpi.it/Notes/Barcode

Release Notes

2007-07-22 This is just something put together in order to easily solve the matter. More refined recipes could be developed (not by me), allowing for even better flexibility and integration with pmwiki. In case of any development (or issue) please let me know -- Luigi

See Also

Contributors

Comments

See discussion at BarCode-Talk

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.