Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typo3 将自定义CSS类添加到流体小部件分页_Typo3_Fluid_Typo3 9.x_Fluid Styled Content - Fatal编程技术网

Typo3 将自定义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

是否可以将自定义css类添加到此小部件:

<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