开发者

Drupal 7 pagination in custom view

开发者 https://www.devze.com 2023-02-23 10:02 出处:网络
I\'ve created a custom view for a page called views-view--projects-landing-page.tpl.php and I want to include pagination within the page.

I've created a custom view for a page called views-view--projects-landing-page.tpl.php and I want to include pagination within the page.

I'm currently displaying all content within the page but would like to paginate this to 8 items.

Please can someone point me in the right direction.

Than开发者_StackOverflow社区ks


On the edit page for the view, make sure you're on the Page display tab. Then look under the Basic settings subsection and look for the Use pager option.


thanks for the help you pointed me in the right direction by chaning the view however due to my custom template I needed to add

<?php print $pager; ?>

to get it to display in the page.

Thanks

0

精彩评论

暂无评论...
验证码 换一张
取 消