machwatt / sf_filecollection_gallery

Simple Image Gallery für TYPO3 CMS which renders a FileCollection containing static or folder based images.
GNU General Public License v2.0
8 stars 11 forks source link

Changing pagination template #73

Closed tauchvogel closed 4 years ago

tauchvogel commented 8 years ago

The pagination template I only can change in typo3conf/ext/sf_filecollection_gallery/ directory. The List-HTML I only can change in fileadmin. Why? Should I use another TS instead that one in the documentation?

And how can I use the lightbox with Bootstrap changes?

machwatt commented 8 years ago

The changing of the pagination template is a confirmed bug. I'll try to fix this if i got the time for that.

For the Bootstrap please open another ticket, as this is not a bug.

typo3ua commented 8 years ago

Hello, everyone!

I have this problem too. I can't change the pagination template.

I have TS:

plugin.tx_sffilecollectiongallery {
    view {
        templateRootPaths {
            0 = {$plugin.tx_sffilecollectiongallery.view.templateRootPath}
            10 = EXT:sitepackage/Resources/Private/Templates/SfFilecollectionGallery/
        }
        partialRootPaths {
            0 = {$plugin.tx_sffilecollectiongallery.view.partialRootPath}
            10 = EXT:sitepackage/Resources/Private/Partials/SfFilecollectionGallery/
        }
        layoutRootPaths {
            0 = {$plugin.tx_sffilecollectiongallery.view.layoutRootPath}
            10 = EXT:sitepackage/Resources/Private/Layouts/SfFilecollectionGallery/
        }
    }
}

My pagination template file in EXT:sitepackage/Resources/Private/Templates/SfFilecollectionGallery/Paginate/index.html

What is wrong?

typo3ua commented 8 years ago

SOLUTION

plugin.tx_sffilecollectiongallery {
    view {
        templateRootPaths {
            0 = {$plugin.tx_sffilecollectiongallery.view.templateRootPath}
            10 = EXT:sitepackage/Resources/Private/Templates/SfFilecollectionGallery/
        }
        partialRootPaths {
            0 = {$plugin.tx_sffilecollectiongallery.view.partialRootPath}
            10 = EXT:sitepackage/Resources/Private/Partials/SfFilecollectionGallery/
        }
        layoutRootPaths {
            0 = {$plugin.tx_sffilecollectiongallery.view.layoutRootPath}
            10 = EXT:sitepackage/Resources/Private/Layouts/SfFilecollectionGallery/
        }
        widget.SKYFILLERS\SfFilecollectionGallery\ViewHelpers\PaginateViewHelper.templateRootPath = EXT:sitepackage/Resources/Private/Templates/SfFilecollectionGallery/
    }
}
machwatt commented 4 years ago

I consider this as closed now