Limit number of pages shown in AutoNav

Permalink
Is it possible to limit the number of pages shown in AutoNav to (lets say) 4 and show the link for more if there's more?

Same goes for PageList. Any help is appriciated!

 
jordanlev replied on at Permalink Reply
jordanlev
It's not possible with the autonav block, but you can do this with the Page List block by setting the "show number of pages" field to 4, then checking the box for "Pagination".
BrettDashwood replied on at Permalink Reply
BrettDashwood
This helped me a little, but I can't find a way to turn off the summary description completely. If I enter truncate after 0, then it presumes 128.

Any thoughts? (Basically I just wanted a page title list)

Thanks
jordanlev replied on at Permalink Reply
jordanlev
Create a custom template for the Page List block that doesn't output the summaries/descriptions.

1) On your server, copy this file:
/concrete/blocks/page_list/view.php

...to here:
/blocks/page_list/view.php

(you'll need to create that new "page_list" folder in your site's top-level "blocks" directory first)

2) Edit that new copy of the file, and delete this chunk of code:
<div class="ccm-page-list-description">
   <?php  echo $description ?>
</div>


Note that you may need to clear your site cache before this change takes effect (via the Dashboard).

Hope that helps!

-Jordan