[大家好,我正在尝试创建一个扩展程序,该扩展程序需要一个json文件并显示图像,到目前为止还不错,但是我想对500多个图像进行分页,这很糟糕。
[我试图在流体中使用widget.paginate,但会显示图像,但是当我单击'next'链接时,我得到的网址无效http://localhost/work/index.php?id=7&tx_llgcinfinitescroll_message%5B%40widget_0%5D%5BcurrentPage%5D=2
我收到一个typo3错误-#1518472189 TYPO3 \ CMS \ Core \ Error \ Http \ PageNotFoundException
<f:widget.paginate objects="{imageData}" as="paginatedImages"
configuration="{itemsPerPage: 24, insertAbove: 1, insertBelow: 0}">
<f:for each="{paginatedImages}" as="image" key="i">
<!-- Assigning Variables -->
<f:variable name="thumbnail" value="{image.imageData.thumbnail}"/>
<f:variable name="fullSizeImage" value="{image.imageData.fullSizeImage}"/>
<f:variable name="imageHeight" value="{image.imageData.imageHeight}"/>
<f:variable name="label" value="{image.imageData.label}"/>
<f:variable name="welshLabel" value="{image.imageData.welshLabel}"/>
<f:variable name="description" value="{image.imageData.description}"/>
<f:variable name="welshDescription" value="{image.imageData.welshDescription}"/>
<!-- Displaying Images -->
<div class="grid__item">
<div class="hovereffect">
<a href="{fullSizeImage}">
<img src="{thumbnail}" itemprop="thumbnail" alt="{label}">
</a>
</div>
</div>
<f:debug>{_all}</f:debug>
</f:for>
</f:widget.paginate>
如果有人知道我在做什么错,请先告诉我,谢谢
您是否简化了帖子中的“下一个”链接?如果不是,则缺少cHash。与[FE] [pageNotFoundOnCHashError] = true(默认)结合使用,它将以404结尾。