This page is still a beta!

1.5. Features

Cooliris (PicLens) use

Passive use of cooliris

Screenshot

Description and configuration

This will be enabled automaticly if you enter a list view on a homepage.

Function: A dynamic RSS feed will be integrated to your page (via typoscript page.headerData ...) which enables this feature. So if you have trouble – check the dynamic RSS feed at first!

Configuration: You can define some settings in the constants (picture with and height, Title, URL, etc...)

NOTE: The RSS will only work, if you have entered a main picture path in the constants (path in flexform wont work!!!)

Active use of cooliris in Frontendplugin

Screenshot

Description and configuration

This is an alternative listview – choose this mode in the plugin for showing the flash plugin.

Basic feature is the rss feed (see above). So if you have trouble – check the dynamic RSS feed at first!

NOTE: The RSS will only work, if you have entered a main picture path in the constants (path in flexform wont work!!!)

NOTE2: The cooliris flash don't wan to open an URL like /index.php?id=2&type=3135 – please rewrite this RSS URL with realurl like /cooliris/wt_gallery.html (see realurl part of this manual for details)

Lightbox use

With perfectlightbox

Open pictures from the listview
#setup
plugin.tx_wtgallery_pi1 {
list {
image = IMAGE
image {
imageLinkWrap.typolink {
parameter.cObject = IMG_RESOURCE
parameter.cObject.file.import.field = picture
parameter.cObject.file.maxW = 600
parameter.cObject.file.maxH = 600
ATagParams = rel="lightbox[galerie]"
}
}
}
}
Open pictures from the singleview
#setup
plugin.tx_wtgallery_pi1 {
single {
image = IMAGE
image {
imageLinkWrap.typolink {
parameter.cObject = IMG_RESOURCE
parameter.cObject.file.import.field = picture
parameter.cObject.file.maxW = 600
parameter.cObject.file.maxH = 600
ATagParams = rel="lightbox[galerie]"
}
}
}
}

With kj_imagelightbox2 < version 2.0.0

Open pictures from the listview
#setup
plugin.tx_wtgallery_pi1 {
        list {
                image = IMAGE
                image {
                        # ImageLightboxv2
                        imageLightbox2 = 1
                        imageLightbox2 {
                                imageset = myImgSet
                                caption=
                                saveImageShow = 0
                                printImageShow = 0
                                presentMode = 0
                                imageset = 1
                        }
                }
        }
}
Open pictures from the singleview
#setup
plugin.tx_wtgallery_pi1 {
        single {
                image = IMAGE
                image {
                        imageLinkWrap = 0
                        imageLinkWrap.enable = 0
                        # ImageLightboxv2
                        imageLightbox2 = 1
                        imageLightbox2 {
                                imageset = myImgSet
                                caption=
                                saveImageShow = 0
                                printImageShow = 0
                                presentMode = 0
                                imageset = 1
                        }
                }
        }
}

TXT and EXIF information for any view:

Description:

Of course I've added this feature again, just configure via constants (EXIF/TXT or TXT/EXIF or only TXT or only EXIF or turn of this feature)

How to use EXIF:

Before you upload your pictures to your webserver, you can enter EXIF informations for every picture. Just open your Windows Explorer and write. After that you can upload your picture folder. Thats all...

Windows Vista example:

Windows XP example:
TXT – using .txt files to describe a picture:

You can upload TXT files in addition to your picture folder to describe your pictures. The TXT files should have the same name like the picture but with the extension .txt: For picture.jpg use picture.jpg.txt.With a pipe sign (|) you can split Title from Subject and so on (see picture for details).

Localisation mode: pic.txt for default language, pic.de.txt for german language, pic.it.txt for italian language and so on...

For security reasons - HTML is not allowed in the txt files!

TXT – using .txt files to describe a folder in category view:

You can upload TXT files in addition to your picture folder to describe the folder. The TXT files should have the same name as the folder but with the extension .txt: For fileadmin/pictures use fileadmin/pictures.txt.With a pipe sign (|) you can split Title from Subject and so on (see picture for details).

Localisation mode: folder.txt for default language, folder.de.txt for german language, folder.it.txt for italian language and so on...

For security reasons - HTML is not allowed in the txt files!

Different menus for list- or categoryview

Pagemenu

Example Screenshot

Example Typoscript
# Category view (pagemenu is default)
plugin.tx_wtgallery_pi1.category.pagebrowser.special.userFunc = user_wtgallery_pagebrowser->pagemenu
# List view (pagemenu is default)
plugin.tx_wtgallery_pi1.list.pagebrowser.special.userFunc = user_wtgallery_pagebrowser->pagemenu

Clickmenu

Example Screenshot

Example Typoscript
# Category view
plugin.tx_wtgallery_pi1.category.pagebrowser.special.userFunc = user_wtgallery_pagebrowser->clickmenu
# List view
plugin.tx_wtgallery_pi1.list.pagebrowser.special.userFunc = user_wtgallery_pagebrowser->clickmenu
Using images instead of text for next/previous
# Category view
plugin.tx_wtgallery_pi1.category.pagebrowser.special.userFunc {
clickmenu.previous = IMAGE 
clickmenu.previous.file = fileadmin/prev.gif
clickmenu.next = IMAGE 
clickmenu.next.file = fileadmin/next.gif
}
# List view
plugin.tx_wtgallery_pi1.list.pagebrowser.special.userFunc {
clickmenu.previous = IMAGE 
clickmenu.previous.file = fileadmin/prev.gif
clickmenu.next = IMAGE 
clickmenu.next.file = fileadmin/next.gif
}
Note

Check the typoscript setup of wt_gallery and you'll see the default settings – which could be changed from anybody

Using dynamic typoscript or locallang marker in any html template:

Explanation

What is a dynamic typoscript marker?

The idea is very simple: Using any typoscript object in a HTML Output! So if you add a special marker in any HTML Template, a similar typoscript object will be called for an output (could be e.g. a HMENU, a TEXT, an IMAGE, or anything else). Of course stdWrap could be used to have the full flexibility.

What is a dynamic locallang marker?

This idea is also simple: Using a defined marker in any HTML template will call a value from the locallang.xml and can be overwritten by typoscript

Where can a use this markers?

In every HTML Template

Example HTML Markers

<div>
Typoscript Label:
###WTGALLERY_TS_ANYOBJECT###
<br />
Locallang Label:
###WTGALLERY_LL_ANYLABEL###
</div>

Example Typoscript

# dynamic Typoscriptmarker
lib.object = TEXT
lib.object.value = This is the value
lib.object.wrap = <b>|</b>
plugin.tx_wtgallery_pi1.dynamicTyposcript.anyobject < lib.object
# dynamic Locallangmarker
plugin.tx_wtgallery_pi1._LOCAL_LANG.default {
wtgallery_ll_anylabel = This is the label
}
plugin.tx_wtgallery_pi1._LOCAL_LANG.de {
wtgallery_ll_anylabel = Das ist die Beschriftung
}

Realurl example:

Explanation

If you want to use the cooliris view it's important to rewrite the RSS URL!

Example for realurlconf.php

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
    'init' => array(
        'enableCHashCache' => 1
    ),
    'preVars' => array(
        array(
            'GETvar' => 'no_cache',
            'valueMap' => array(
                'no_cache' => 1,
            ),
            'noMatch' => 'bypass',
        ),
    array(
        'GETvar' => 'L',
        'valueMap' => array(
            'en' => '1',
        ),
        'noMatch' => 'bypass',
        ),
    array(
        'GETvar' => 'type',
        'valueMap' => array(
'cooliris' => '3135'
        ),
        'noMatch' => 'bypass',
        ),
    ),
    'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 1,
    ),
    'postVarSets' => array(
        '_DEFAULT' => array (
            'index' => array(
                array(
                    'GETvar' => '',
                ),
            ),
'bilder' => array(
                array(
                    'GETvar' => 'tx_wtgallery_pi1[category]',
               ),
                array(
                    'GETvar' => 'tx_wtgallery_pi1[show]',
                ),
                array(
                    'GETvar' => 'tx_wtgallery_pi1[listpointer]',
                ),
                array(
                    'GETvar' => 'tx_wtgallery_pi1[categorypointer]',
                ),
            ),
        ),
    ),
    'pagePath' => array(
        'type' => 'user',
        'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
        'spaceCharacter' => '-',
        'languageGetVar' => 'L',
        'expireDays' => 0,
'rootpage_id' => '1',
    ),
);