D
D
Dmitry Grabko2017-08-28 17:13:40
MODX
Dmitry Grabko, 2017-08-28 17:13:40

Why doesn't jot see the number of pages?

I display reviews on the pages through Jot.
Page call:

[!Jot? &placeholders=`15` &output=`0` &subscribe=`1` &pagination=`10` &moderated=`1` &tplForm=`otziv_form` &tplComments=`otziv_comment` &customfields=`name,adres,datauser`!]
[+jot.html.comments+] 
[+jot.html.navigation+] 
[+jot.html.form+]
[+jot.html.moderate+]

Chunk.navigation.inc.html template code
<a name="jotnav[+jot.link.id+]"></a>
<div class="jot-nav">
  <!--a rel="nofollow" class="jot-btn jot-show-all" href="[+jot.link.navigation:esc+][+jot.querykey.navigation+]=0#jotnav[+jot.link.id+]">Просмотреть все</a-->
  [+jot.page.current:gt=`1`:then=`
  <a rel="nofollow" class="jot-btn" href="[+jot.link.navigation:esc+][+jot.querykey.navigation+]=[+jot.page.current:math=`?-1`+]#jotnav[+jot.link.id+]">&laquo; Предыдущяя</a>
  `+]
  [+jot.pages+]
  [+jot.page.current:lt=`[+jot.page.total+]`:then=`
  <a rel="nofollow" class="jot-btn" href="[+jot.link.navigation:esc+][+jot.querykey.navigation+]=[+jot.page.current:math=`?+1`+]#jotnav[+jot.link.id+]">Следующая &raquo;</a>
  `+]
</div>

Navigation works, but the number of pages and the transition through them are not shown

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question