Problems, need help? Have a tip or advice? Post it here.
7 posts Page 1 of 1
Hello,

I was wondering if there's a way to offset the pagination in a list of cloned pages?

Like making page 2, page 1...page 3 would become page 2, and so on.
The page 1 would need to be another page on the website...as weird as it can sound.

So page 1 would be a different page. And the cloned pages list on the actual list page would start at page 2.

Thanks a lot for your help!
Use k_paginated_top and fetch first page there.
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
I'm not sure I understand.

I need to put

Code: Select all
k_paginated_top


On the first page that is not linked with the others?

Thanks for your help
@larin555, I am sorry but I cannot think of any straightforward way of doing this.
Thanks KK, Trendoman helped me via Skype.

One thing I was wondering.
Is there a way to order all the pages in the list based on a checkbox in the admin panel that all clonable pages has?

For example, let's say I have 100 clonable pages that we will call "profiles" here.
In these profiles, there's a "featured" checkbox.
Only 10 of them has the "featured checkbox checked.

All the profiles are ordered that way :
Code: Select all
orderby="page_title" order="asc"


I would like to show the profiles that has the "featured" checkbox first in the list, and then the rest, in a alphabetical order.
I've read in the documentation (http://docs.couchcms.com/tags-reference/pages.html) that there's a way to order the pages by custom fields.

I was thinking of doing something like:

<cms:pages masterpage='profile.php' id=nom_id paginate='1' limit='28' custom_field=custom_search custom_field='is_conferencier=oui' orderby="my_categories, page_title" order="asc" >

my_categories being the custom field name (the featured checkbox)

So again, I would want it to list all the profiles that have the my_categories checkbox checked, and then list the rest of the 100 profiles.

Just to show an example using numbers...
(bold being "my_categories" field checked)

Normal order:
1,2,3,4...15,16,17,18...95,96,97,98,99,100

What I need:
15,95,100,1,2,3,4...96,97,98,99

Thanks a lot!
Thanks KK, Trendoman helped me via Skype.
Great! Would be very helpful if you could share the solution.

Regarding your question about sorting using two parameters, yes that is supported e.g.
Code: Select all
<cms:pages masterpage='actors.php' orderby='my_desc, page_title' order='asc, asc'>
    <cms:show k_page_title /><br/>
</cms:pages>
Did you run into any problem using your code?
Hi KK,

That's almost identical to what Trendoman told me to try.
But instead of

Code: Select all
<cms:pages masterpage='actors.php' orderby='my_categories, page_title' order='asc, asc'>
    <cms:show k_page_title /><br/>
</cms:pages>


This worked better for me since I needed the "my_categories" checked profile to appear first on the list. That's why I used order="asc", then "desc".

Code: Select all
<cms:pages masterpage='actors.php' orderby='my_categories, page_title' order='asc, desc'>
    <cms:show k_page_title /><br/>
</cms:pages>


Thanks again for your great support!
7 posts Page 1 of 1