BarcodeGenerator

Links

About BarcodeGenerator

Description

Display a barcode on your website with this module. Users can also generate their own if you choose to enable that option. Tokens are available to generate a barcode that uses Portal or User information. The module also has a SkinObject with several options.

Module settings

Type: Select the type of barcode to be generated.

Default value: Set the default value of the barcode. This value is required if there is no user input allowed.

Height: Set the height of the generated barcode in pixels. The module will optimize the width for the selected barcode type.

Force exact dimensions:Make sure the barcode is the size specified in the settings. This could result in somewhat blurry barcodes if the ratio is not set correctly. The final size includes the padding.

Width: Set the width of the generated barcode in pixels. This option is only available when forcing exact dimensions.

Padding: Set the padding in pixels around the barcode.

Background color: Specify a background color in HEX format (#FF0000)

Allow user input: When enabled a user can generate their own barcode.

Allowed types: Set the allowed barcode types that can be generated by a user.

Token Settings

Use tokens:Enable the use of tokens in the module.

Token string: The string containing the tokens that will be used to generate the barcode. This will overwrite the default value specified in the Basic Settings.

On error: When a barcode cannot be created you can either show the error message or display nothing.

Replace uncodable characters: When there are characters in the generated string that cannot be used in the selected barcode type (ëÜéÉà etc), they will be removed. This greatly increases the chances of successful barcode generation.

Show generated token string: This show the generated string that is created from the tokens underneath the barcode.

Tokens

These are the available tokens that can be used in the Module or Skin Object.

This is the most basic usage of the Skin Object. This will display a QR code with the Text “1234” and with a height of 60 pixels and no message on error. But there are a lot of options available. The object below will generate a “25 Interleaved C” barcode with replaced tokens. For the barcode type see the list below.