Summary
Goto Last Page defaults to the last page of comments (instead of the first one) for configurable node types.
This is useful if you have a lot of comments /maybe threaded) for a node and want the user to immediately show the most recent one.
It also allows adding a custom fragment (like #comments) to pager links, so the user will go straight to comments section while paging through comments.
Description
If "page" query parameter is not set, Drupal defaults to the first page of a pager; but this is not always the best choice.
Example
-------
Node: http://example.org/mynode
Node comments: 500
Comments / page: 25
Comments sorting: Threaded list - Expanded / Date - Oldest first
When a visitor opens http://example.org/mynode , Drupal will return the node together with the first page of comments (1 to 25).
But these comments are the oldest, so the user must click again on the comments pager to see the more recent ones... and this could require more than one click.
Goto Last Page changes this behavior (on configurable node types) by returning the last page by default.
What changes?
Let's see how rendered pager links will be changed by Goto Last Page module when an user request the same URI as above.
Without Goto Last Page module
URL: http://example.org/mynode
Returned comments page: first
First page: http://example.org/mynode
Prev. page: http://example.org/mynode
Page 2: http://example.org/mynode?page=1
Page 3: http://example.org/mynode?page=2
Next page: http://example.org/mynode?page=1
Last page: http://example.org/mynode?page=19
With Goto Last Page module
URL: http://example.org/mynode
Returned comments page: last
First page: http://example.org/mynode?page=0
Prev. page: http://example.org/mynode?page=18
Page 2: http://example.org/mynode?page=1
Page 3: http://example.org/mynode?page=2
Next page: http://example.org/mynode
Last page: http://example.org/mynode
As you can see now the default page is the last; to see the first one, page=0 query parameter must be added to the URI.
Requirements
Comment core module must be enabled.
Installation
Install as usual, see https://drupal.org/node/895232 for further information.
Configuration
By default the module is active on all node types.
Open configuration page (admin/config/system/gotolastpage) to change it.
Multiple pagers
The module will only change the first pager (PagerID=0) so it won't interfere with other pagers as long as they have PagerID != 0.
If you have other paged contents shown together with comments (like a paged view in a block), please set that these additional pagers to have PagerID parameter different from 0.
In Views module this can be done by editing "pager" details.
Permissions
By default only admin can access the configuration of this module.
If you need to give this permission to other users, go to the permissions page:
admin/people/permissions#module-gotolastpage
Project information
- Project categories: Content display
1 site reports using this module
- Created by nicorac on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.