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
Steffen Kamper has written an editor - friendly picture gallery called
sk-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
download the customized version here (sk-simplegallery including the pagebrowser).
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:
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:
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 } }
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:
You can find an
example of the customized extension sk-simplegallery on this page.
extension file