Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi, KK

What do i do wrong here?
Code: Select all
<cms:pages masterpage='blog.php'
             custom_field="has_tag=ANY"
             paginate='1'
             limit = '10' >
    <cms:show k_page_title /><br>
    <cms:paginator />
<cms:dump />
  </cms:pages>

I have only 3 clonable pages in blog, and 22 tags.
dump shows that paginator is thinking i have 25 pages, which i guess is a sum of all pages in both templates.
k_total_records: 25
k_total_records_on_page: 3
k_current_record: 1
k_absolute_count: 1
k_record_from: 1
k_record_to: 3
k_total_pages: 3
k_current_page: 1
k_paginate_limit: 10
k_paginated_top: 1
k_paginated_bottom: 0
k_paginator_required: 1

What do i do to prevent this behaviour? Thank you!
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
Yup, that is a bug alright.

I'm PMing you a fix. Please test it out and let me know if it helps.
I'll commit the change thereafter.

Thanks for the heads-up.
PMed. Fix helped.
Join COUCH:TALK channel here https://t.me/couchcms_chat
Ryazania — a framework to boost productivity with Add-ons viewtopic.php?f=2&t=13475
Support my efforts to help the community https://boosty.to/trendo/donate
3 posts Page 1 of 1