Pagers are not showing up on a main views page, and when editing a view with a custom pager assigned, the custom pager does not show as a content type that can be selected. According to Moshe's bug submission guidelines, this would seem to be an issue with Custom Pagers not telling Views that it's there.

Here's what I did:
Created a custom content type, "Comic."
Created a view to show one comic node at a time, sorted by title, in descending order
No custom pagers on views page

I thought perhaps I needed to add "custom pager" to the view, so in my view, I selected fields-- content, but no listing for Custom Pagers.

Just when I thought I would have to go back to Drupal 5.x, I found a workaround for now--I created the view in Drupal 5 with Views 1 and imported it to Drupal 6.4 with Views 2, and the pagers show up just fine. It's a rather messy workaround, though.

Comments

spiffyd’s picture

Title: CP not supplying content to Views » Custom Pagers Not Showing on Custom Content Types
Version: 6.x-1.x-dev » 6.x-1.10-beta1
Priority: Normal » Critical

Views show nodes I want with different content types fine. Custom pagers aren't showing up on those custom content type nodes even when I've selected the type in CP settings.

Any one else get this?

franckweb’s picture

Ive created a content type hotel in which i have hotel_title and image_title ... then I created a view to show just those fields of this type of node ... the view page shows correctly that information but ALSO adds empty spaces for the rest of the nodes I have ... which are diferent node types.

for example I have 3 hotels and 2 restaurants, the view shows me:
hotel1
hotel2
hotel3
empty space
empty space

the empty spaces are obviously for the restaurant content type.

Did anyone solve this problem? Im using drupal 5 and the modules compatible for that.

robhamm’s picture

Status: Active » Needs work

I found an answer for this. I have no idea why this works, but it does:

I changed my View to "fields," (instead of node), and the pagers showed up. I then went back and changed my View to node again, and the custom pagers remained. So now, with every site I build that uses custom pagers, I start out with fields, set up my custom pagers, then switch back to node again. This approach has worked for me every single time I've tried it.

As far as where this needs to be fixed, I've no idea if it is a Custom Pager problem, a CCK problem, or a Views problem.

kaare’s picture

Title: Custom Pagers Not Showing on Custom Content Types » Custom Pagers not showing with argument validator != basic
Version: 6.x-1.10-beta1 » 6.x-1.x-dev
Status: Needs work » Needs review

This problem arises once you use more than just basic argument validation in your view. I went knee-deep into views argument handling code to figure this one out. So a temporary fix would be to set argument validation to basic in your view.

kaare’s picture

Title: Custom Pagers not showing with argument validator != basic » Custom Pagers missing when views argument validator != basic

Changed title

robhamm’s picture

Cool. Also, I should have been more specific just in case it makes a difference--The view did not show as a choice on the create custom pager page with view row style set to node, and I had no arguments at all defined.

plach’s picture