Russian TYPO3 community Форум больше не используется. Присоединяйтесь к каналу #community-ru в Slack for TYPO3 community  

Вернуться   Russian TYPO3 community > Обсуждение общих технических вопросов > Общие вопросы

 
 
Опции темы Опции просмотра
Старый 22.01.2016, 15:27   #2
Николай Сипко
Senior Member
 
Регистрация: 17.09.2012
Сообщений: 675
По умолчанию

Цитата:
Сообщение от iMoD Посмотреть сообщение
Нашел расширения, кто та с ними работал ?

http://typo3.org/extensions/reposito...L=0&q=paginate
readme.txt
==========
First we need to declare name space in your template file

=> {namespace pg=JS\JsPaginate\ViewHelpers}

then after we can use following pagination script. and need to add our records [ array ] in objects

<pg:Paginate objects="{faq}" as="paginatedObject" configuration="{itemsPerPage: 5, insertAbove: 1, insertBelow: 1, maximumVisiblePages: 5}">
<div class="faq-list">
<f:for each="{paginatedObject}" as="list" iteration="itemIteration">
<div class="even {f:if(condition: itemIteration.isOdd , then: 'odd')}">
{paginatedObject.title}
</div>
</f:for>
</div>
</pg:Paginate>

/*********************************** Pagination Configuration ************************************************** ****/

1) itemsPerPage = 5
5 records will display on first page

2) insertAbove = 1
if insertAbove is true then pagination will display before content

3) insertBelow = 1
if insertAbove is true then pagination will display after content

4) maximumVisiblePages = 5
Maximum Visible Pages 5 in pagination.

setup.text
==========
plugin.tx_jspaginate {
settings{
hideDotInNavigation = {$plugin.tx_jspaginate.settings.hideDotInNavigatio n}
}
}

constants.txt
=============
plugin.tx_jspaginate {
settings{
hideDotInNavigation = 0
}
}

А что непонятно?
Николай Сипко вне форума   Ответить с цитированием
 


Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB code is Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.

Быстрый переход


Часовой пояс GMT +4, время: 17:20.


Работает на vBulletin® версия 3.8.1.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot

Хостинг и техническая поддержка: TYPO3 Лаборатория