Overhauled

In the meantime a new version of the gallery has been submitted by Steffen Kamper, including fixes and a pagebrowser. So this version is overhauled, but can still be used of an example of customization

A simple pagebrowser for sk-simplegallery

Opens external link in new windowSteffen Kamper has written an editor - friendly picture gallery called Initiates file downloadsk-simplegallery. But without a pagebrowser. So if you have many images in your picture gallery the user has to load every image. This takes time and needs space. Because of a client request I have programmed a very simple pagebrowser for this extension. You can Initiates file downloaddownload the customized version here (sk-simplegallery including the pagebrowser).

Image of the TYPO3 backend form
Setting up the SingleView

Setting up the extension

The pagebrowser is set up by TypoScript in templates, only the entries per page - option is customizable by the backend forms. All options but four set up by TypoScript are located under pagebrowser. Those two, which are not located under pagebrowser, are located under singleView. So lets see a TypoScript example setting up the gallery sk-simplegallery:

TypoScript Setup
plugin.tx_sksimplegallery_pi1 {
    templateFile = path-to-your-template

    popupBodyTag = <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    captionWrap = <p style="font: 0.9em 'palatino', arial, helvetica, sans-serif;padding:10px;">|</p>

    singleView {
        entriesPP = 9
        entriesPerLine = 3
        line_start = <tr>
        line_end = </tr>
    }

    pageBrowser {
        activePageWrap = <span class="activePage">|</span>
        pageWrap = <span class="page">|</span>

        nextLinkWrap = <span class="nextLink">|</span>
        previousLinkWrap = <span class="previousLink">|</span>
        inactiveNextLinkWrap = <span class="inactiveNextLink">|</span>
        inactivePreviousLinkWrap = <span class="inactivePreviousLink">|</span>

        jumpFirstPageWrap = <span class="jumpToFirst">|</span>
        jumpLastPageWrap = <span class="jumpToLast">|</span>
        inactiveJumpFirstPageWrap = <span class="inactiveJumpToFirst">|</span>
        inactiveJumpLastPageWrap = <span class="inactiveJumpToLast">|</span>

        showInactiveLinks = 1
    }
    captionHeight = 100
    general_stdWrap >
}

The only lines added by me are:

TypoScript Setup
plugin.tx_sksimplegallery_pi1 {
    singleView {
        entriesPP = 9
        entriesPerLine = 3
        line_start = <tr>
        line_end = </tr>
    }

    pageBrowser {
        activePageWrap = <span class="activePage">|</span>
        pageWrap = <span class="page">|</span>

        nextLinkWrap = <span class="nextLink">|</span>
        previousLinkWrap = <span class="previousLink">|</span>
        inactiveNextLinkWrap = <span class="inactiveNextLink">|</span>
        inactivePreviousLinkWrap = <span class="inactivePreviousLink">|</span>

        jumpFirstPageWrap = <span class="jumpToFirst">|</span>
        jumpLastPageWrap = <span class="jumpToLast">|</span>
        inactiveJumpFirstPageWrap = <span class="inactiveJumpToFirst">|</span>
        inactiveJumpLastPageWrap = <span class="inactiveJumpToLast">|</span>

        showInactiveLinks = 1
    }
}

What...?!

In the section singleView you can find entriesPP, entriesPerLine, line_start and line_end. Now what are they for?

The section pagebrowser mainly consits of wraps. The syntax of the wraps is the same as it is for the standard wrap element in TS:

So let's look at the items in pagebrowser:

Example

You can find an Opens internal link in current windowexample of the customized extension sk-simplegallery on this page.

Download

 
en | de | it