Login / Status
developer.Resource
Home . Documentation . Document Library . Extension Manuals
Sponsors
hosted by punkt.deTYPO3 and Open Source MagazineAOE Media

1.3. Configuration

TypoScript Constants

Property:

Data type:

Description:

Default:

defaultFontSize

int

Default font size expressed as a percentage (but without units)

100

fontSizeIncrement

int

Increment by which the size of the font should be varied (up or down) every time a control is pressed. Expressed as a percentage (but without units)

10

TypoScript Setup

Property:

Data type:

Description:

Default:

defaultFontSize

int

Default font size expressed as a percentage (but without units)

{plugin.tx_efafontsize_pi1.defaultFontSize}

fontSizeIncrement

int

Increment by which the size of the font should be varied (up or down) every time a control is pressed. Expressed as a percentage (but without units)

{plugin.tx_efafontsize_pi1.fontSizeIncrement}

controlOrder

string

This string defines the order of display of the controls. It contains the three words “smaller”, “reset” and “bigger” separated by commas. It must absolutely contain those three words, even if you intend to hide some controls. Hiding a control is achieved by using the boolean value of each control as described below. If even one word is missing from this property, the script will revert to the default value.

smaller,reset,bigger

bigger

boolean/ ->controlConfig

Set to 1 to display the “Enlarge font size” control. Set to 0 to hide. Configuration parameters for the controls are entered as sub-properties.

bigger = 1

bigger {

    insideHTML = IMAGE

    insideHTML.file = EXT:efafontsize/res/icons/bigger.gif

}

reset

boolean/ ->controlConfig

Set to 1 to display the “Reset font size” control. Set to 0 to hide. Configuration parameters for the controls are entered as sub-properties.

reset = 1

reset {

    insideHTML = IMAGE

    insideHTML.file = EXT:efafontsize/res/icons/reset.gif

}

smaller

boolean/ ->controlConfig

Set to 1 to display the “Reduce font size” control. Set to 0 to hide. Configuration parameters for the controls are entered as sub-properties.

smaller = 1

smaller {

    insideHTML = IMAGE

    insideHTML.file = EXT:efafontsize/res/icons/smaller.gif

}

[tsref:plugin.tx_efafontsize_pi1]

Control parameters

Property:

Data type:

Description:

Default:

beforeHTML

cObj

HTML to be displayed before the control proper

insideHTML

cObj

The control itself

an IMAGE cObj with a relevant icon (see above)

class

string

Value of the class attribute to apply to the <a> tag around the control

id

string

Value of the id attribute to apply to the <a> tag around the control

name

string

Value of the name attribute to apply to the <a> tag around the control

accesskey

string

Access key for the control

onmouseover

string/stdWrap

JavaScript to execute upon the onmouseover event. It seems using double quotes inside this property doesn't work, so stick to single quotes.

onmouseout

string/stdWrap

JavaScript to execute upon the onmouseout event. It seems using double quotes inside this property doesn't work, so stick to single quotes.

onfocus

string/stdWrap

JavaScript to execute upon the onfocus event. It seems using double quotes inside this property doesn't work, so stick to single quotes.

afterHTML

cObj

HTML to be displayed after the control proper

[tsref:plugin.tx_efafontsize_pi1.controlConfig]