I am a newbie to Drupal. I created my own custom content type using the CCK. I then proceeded to create a block view for it, and created a page that consumes the block. My questions is simple. I would like to only show a certain amount of entries per page (25) in the block view, and then have it so you could go to the next page of results.. So if there were 75 entries there would be three pages. I do not see how you can do this. From the view you can limit the number of results, but it doesnt let you define pagination. I also tried installing the CCK Pager module, but it doesnt seem to do anything for me. Am I missing something? Thanks in advance.

:) David

PS - Using Drupal 6.15

Comments

matt_harrold’s picture

You can define pagination within a View ... you are missing something! Check the View editor screen ... particularly the "Basic Settings" part.

Row style: Fields
Use AJAX: No
Use pager: No <- !!!!! change this to "yes"
Items to display: 25
More link: Yes
Distinct: Yes

dapperry’s picture

Even after following your instructions the Page links do not show up in the Block display when I include it in another page (It does show up in Preview). They also do show up in a Page Display. However I wanted to use a block display so that I could create a Page with a taxonomy term so I could use taxonomy menus. My page's PHP code to invoke the Block display is:

$block = module_invoke('views', 'block', 'view', 'Commercial_Clients-block_1');
print $block['content'];

Any further help would be much appreciated.

:) David

WorldFallz’s picture

You might want to delete and recreate the view-- I can confirm that paging a block view does indeed work as expected.

dapperry’s picture

Yes - recreating it got it done. Thanks!!

:) David