Hello, I have a clean install of latest drupal and jcarousel and all other modules.
added a content type with an image field and then created a block with views to show the images.
everytime i choose jcarousel for the block i get the error:
The jCarousel style cannot be used with a pager. Disable the "Use pager" option for this display.
please this needs to be fixed...
Comments
Comment #1
quicksketchThe error it's giving you is telling you what you need to do. As stated, jCarousel cannot be used with a pager and you need to disable it.
Comment #2
YippieYeah commentedwhere is the option to turn it off? it says full etc but i dont see an off button
Comment #3
quicksketchIt depends on your version of Views, since D7's Views is changing so quickly. Currently I have the following options for Pagers:
- Display a specified number of items
- Display all items
- Paged output, full pager
- Paged output, mini pager
Use one of the first two options. Not the pager ones.
Comment #4
clemens.tolboomWhen using views 7.x-3.x the workaround is to 'Continue and Edit' the view first without selecting the display format. Then remove the pager and set display format.
I consider this a Bug as the validation of 'Pager' blocks the initial 'views add' workflow edit. (Hope you don't mind :)
Maybe displaying the workaround within the validation error helps the users.
Comment #5
giannhsp commentedthat bug took me about half an hour for nothing :P
I am new to drupal and views, but the menus are really confusing...
If you go to "add new view" menu and try to use display format : carousel, you just can't continue because you will get the error about the pager, and you cant see the pager options on this panel.
Sooo... an easy solution would be to check another display format and after you disable pager, then change back to carousel.
Also the pager menu is not so clear in my opinion, at least for newbies like me :P
I think I should be made clear that the option "Display a specified number of items" is actually disabling the pager, because someone (moi) might think that the pager is not actually disabled, but is set to certain state... duh! ;)
Comment #6
Fiable.biz commentedI agree this is a bug. When something is required, it should be explained how to do it, and, if possible, it should be easy to realise.
See http://drupal.org/node/1098480#comment-4416306 .
Comment #7
Katy J commentedThanks you for this workaround, saved me time :)
Comment #8
TribalMan commentedSpecified number must be "0" otherwise the pager is still on
Comment #9
b_ruben commentedI have set Pager settings "Display a specified number of item" to 0 but error message doesn't go away. How to remove pager?
edit: fixed
Comment #10
spenoir commentedStill can't get rid of the error message even after setting Specified number to 0. Tried saving as other type and everything too. Its just another bug
Comment #11
kreynen commentedYou can no longer "Disable the Use pager" in Views 3 and there is no option to change the Pager option when adding a new View... so no, the error is not telling users what to do. Since Views 3 is at a release candidate and the only support version for D7, it would be nice to see this fixed this in jCarousel.
It's possible to generate this error in 2 different situations where you can't follow the instructions in the error message.
The first is the views_ui_add_form which @giannhsp described in detail back in #5.
The second is overriding the Pager setting on a block where the block was using a Paged option in the Pager and selecting the jCarousel format. That is really frustrating because even when you've already overridden the Pager to "Display a specified number of items", you are still being told by the error to "Disable the Use pager". The way I worked through this was to change the Block to use the "Display a specified number of items" pager option and select any other Format (Table, Grid, Unformatted List). Save the View. Then go back and change the Format of the Block to use jCarousel.
In the views_ui_add_form even if you set "Items per page" to 0 you are still told...
Since there is no way to Disable the "Use pager" option in views_ui_add_form without changing the Views module, my suggestions to prevent users from getting an error with instructions they can't follow in the views_ui_add_form in the jCarousel module are to either...
1a. Remove jcarousel completely as an option when starting a new view. To do that we'd could add something like...
This would prevent users getting stuck there, but isn't that intuitive. We'd just be replacing this issue with...
I've enabled JCarousel. Why isn't it's not an option when I create a view?
1b. Show the option in the select list, but disable it. To do that we'd could add something like...
Still not perfect, but better.
2. Changing the error message.
It would be great to use a different error when trying to add vs. edit in jcarousel_style_plugin.inc and check the overriden state of use_pager, but I can't see an easy way to do either of those in the validate() function...
Maybe someone else can figure that out, but the easy option would be to change the error to a more detailed (longer) instructions that would cover every state...
If either option for 1 are used, the last 2 sentences of the error could be dropped. I'm sure someone else can improve on the wording, but some combination of these fixes would solve the problem of an error message that tells users to change a setting with terms that no longer match the Views UI, is not possible to change on add, and/or they've already changed in edit.
Comment #12
quicksketchThis problem has been fixed on the Views module side. See #1098480: You can't select "no pager" on the first page of the views create form.
The jCarousel documentation has been updated to reflect the new option: #1144468: README.txt file doesn't fit Views modules 7.x-3.0
Comment #13
ranito1980 commentedI had the same issue. To fix this issue go to your "view" and under pager options choose "Display All Items" and for "More Link", choose "No". Don't forget to hit "Save"! You're welcome!