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

1.4. Configuration

Extension can be configured either as content element or through TypoScript. Content element configuration is self-explanatory. TypoScript configuration is described below.

FAQ

None yet

Reference

TypoScript configuration of the extension

Property:

Data type:

Description:

Default:

thumbnailWidth

int

Maximum width of the thumbnail. Thumbnail will fit to the box described by thumbnailWidth and thumbnailHeight

150

thumbnailHeight

int

Maximum height of the thumbnail. Thumbnail will fit to the box described by thumbnailWidth and thumbnailHeight

112

midImageWidth

int

Maximum width of mid-size image. Image will fit to the box described by midImageWidth and midImageHeight

450

midImageHeight

int

Maximum height of mid-size image. Image will fit to the box described by midImageWidth and midImageHeight

335

columns

int

Number of columns in the thumbnail view

4

rows

int

Number of rows  in  the thumbnail view

3

storagePid

int

uid of the page where images for this album are stored

templateFile

resource

Path to template file relative to site root. Can have  "EXT:" prefix

EXT:album3x/res/pi1.html

thumbnailCObj

COBJECT

This cObject is used to generate  thumbnail.

The following constants will be substituted with values from configuration:

$width – thumbnailWidth

$height – thumbnailHeight

$image – original image file name

object

midImageCObj

COBJECT

This cObject is used to generate  mid-size  image. See also  thumbnailCObj for the description of special constants

object

RealURL configuration

The following should be added to RealURL configuration "postVarSets" section:

'page' => array(
    array(
'GETvar' => 'tx_album3x_pi1[page]',
    ),
),
'image' => array(
    array(
        'GETvar' => 'tx_album3x_pi1[showUid]',
        'userFunc' => 'EXT:album3x/class.tx_album3x_realurl.php:&tx_album3x_realurl->main',
    ),
),

URLs will look like this assuming that album is located on the page entitled "Album":

http://yourdomain.tld/album/page/5/
http://yourdomain.tld/album/image/my_image_title/

If image has no title, than image file name will be converted to a valid variable segment. In case if title is not unique, underscope and image uid will be appended to the next image's URL segment with the same image title:

http://yourdomain.tld/album/image/my_image_title_5/