开发者

Drupal 7 pagination in custom view

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜