The text displayed in the 'more' link options can drive newcomers to confusion. It says:
Do not display more link unless there is more content .
This will display the more link even if there are no more items to display.
Which is obviously contradictory and may lead to the wrong belief that checking the option will make the 'more' item to appear always.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | backport_of_more_link_text_amendment-1372184-5810858.patch | 904 bytes | slv_ |
| #1 | Improving-more-link-text-1372184-1.patch | 904 bytes | slv_ |
Comments
Comment #1
slv_ commentedI attach a patch to display a more appropiate text:
Comment #2
dawehnerWell it's actually not that way. If you check use_more_always there is no check for more items, the link just appears. Your description would be right, if the option would be negated
Did this helped you? Thanks for working on better help texts!
Comment #3
slv_ commentedWell, it turns out that this specific option is actually negated, so that's why this is working like that. (the line #default_value is on the attached patch itself, so can be checked there too).
Double checked and tested, and checking the option is definitely not showing the link if there are no more items.
The funny thing is that I didn't realize the option was negated until I re-opened the code, and then saw your reply!.
Hope this clarifies all and the patch is useful. Changing to needs review again.
Thanks for your quick reply dereine.
Cheers! =)
Comment #4
dawehnerAre you really sure?
Comment #5
slv_ commentedAbsolutely sure (the line numbers may differ slightly, but this 2 snippets are from the pop-up form and from the options_submit(&$form, &$form_state) function:
Note the "!" mark in "#default_value" line when retrieving the value
And the same "!" here when storing the value.
So, when you actually *check* the option, the stored value is 0, instead of 1, and that's why checking the option, doesn't render the link.
Don't know why that was set that way, and if may affect to other functions, but it seems clear to me that the UI text is misleading for the end user, the way this works right now
Cheers.
Comment #6
slv_ commentedAny word on the last comment?
Cheers...
and merry xmas, btw! =)
Comment #7
westbywest commentedI confirm this problem exists with my setup too:
Drupal 7.12
Views 7.x-3.1
Features 7.x-1.0-beta6 (since problem was found debugging features/views issue)
The text next to the checkbox "This will display the more link even if there are no more items to display" does appear to directly contradict what that checkbox does.
Comment #8
dawehnerOh this issue got somehow lossed, sorry for that.
You are right, i remember, the logic was reversed.
Comment #9
dawehnerCommitted now to 7.x-3.x, let's see maybe someone wants to backport that to 6.x-3.x
Comment #10
slv_ commentedI attach the backported patch for 6.x-3.x.
Not sure if that's correct, but I'm changing the status to needs review.
Btw, thanks for coming back to this dawehner =).
Cheers guys.
Comment #11
dawehnerThanks for the rerole! Committed it to 6.x-3.x as well