Typo3 将自定义CSS类添加到流体小部件分页
是否可以将自定义css类添加到此小部件:Typo3 将自定义CSS类添加到流体小部件分页,typo3,fluid,typo3-9.x,fluid-styled-content,Typo3,Fluid,Typo3 9.x,Fluid Styled Content,是否可以将自定义css类添加到此小部件: <f:widget.paginate objects="{products}" as="paginatedProducts" configuration="{itemsPerPage: 1, insertAbove: 1, insertBelow: 0, maximumNumberOfLinks: 10}"> 目前,“下一步”按钮内有一个li和链接。我想链接成为一个按钮。因此,我想向a(在li内部)添加一个名为“btn btn pr
<f:widget.paginate objects="{products}" as="paginatedProducts"
configuration="{itemsPerPage: 1, insertAbove: 1, insertBelow: 0,
maximumNumberOfLinks: 10}">
目前,“下一步”按钮内有一个li和链接。我想链接成为一个按钮。因此,我想向a(在li内部)添加一个名为“btn btn primary”的类。您可以使用打字脚本覆盖扩展中使用的小部件模板:
plugin.tx\u yourextension.view.widget.TYPO3\CMS\Fluid\ViewHelpers\widget\PaginateViewHelper.templaterootpath.10=EXT:yourextension/Resources/Private/Templates/
然后可以在自定义模板中添加类。自定义模板的路径应该是扩展名中的Resources/Private/Templates/ViewHelpers/Widget/Paginate/Index.html
您可以在此处找到分页小部件的默认模板:
typo3/sysext/fluid/Resources/Private/Templates/ViewHelpers/widget/paginate/Index.html
您可以使用TypoScript覆盖扩展中使用的小部件的模板:
plugin.tx\u yourextension.view.widget.TYPO3\CMS\Fluid\ViewHelpers\widget\PaginateViewHelper.templaterootpath.10=EXT:yourextension/Resources/Private/Templates/
然后可以在自定义模板中添加类。自定义模板的路径应该是扩展名中的Resources/Private/Templates/ViewHelpers/Widget/Paginate/Index.html
您可以在此处找到分页小部件的默认模板:typo3/sysext/fluid/Resources/Private/Templates/ViewHelpers/widget/paginate/Index.html