Ticket #772 (new enhancement)
Paginator to allow Google crawl your site.
| Reported by: | vaibhav | Owned by: | |
|---|---|---|---|
| Priority: | must | Milestone: | 2.2 |
| Component: | QControls | Version: | 2.0.2 Stable |
| Keywords: | Pagination, SEO, Google | Cc: |
Description
The current implementation of pagination in QCubed depends entirely on FormState. The links created for navigation onto other pages of the datgrid or datarepeaters have the 'a href' link pointing to the same page. Google cannot crawl the rest of your site that way!
I propose QLinkPaginator which creates links for the various pages (in its 'next' and 'previous' links) allowing Google to go to all the pages with paginated content. It is not the usual paginator and deals with the Request URI rather than internal object counts and hence cannot be used just as the QPaginator can be used. Along with the Crwaling possibility of all the content paginated via it, it has the following features:
Features:
*
You can set a custom 'pagination variable' For example, if you have set the pagination variable to "page" then it would create links (for page number 3) as:
yoursite.com/some/page/path.php?othervars=othervalues&page=3
If you set the pagination variable as 'list' then the query will become:
yoursite.com/some/page/path.php?othervars=othervalues&list=3
You can use the value of your pagination variable to control the content being displayed on the page (using QApplication::QueryString() function)
*
It does not remove the other variables from the URLs. So in above example, it would not remove the "othervars=othervalues" part from the URL on the 4th or 2nd page
*
A dropdown list of pages so that you can jump to the page required in one go. No need to browse to page 50, then to page 100 and then to page 122. just select the page you want to go from the dropdown list, and hit the 'go' button. It will take you there.
*
the current page number you are at is automatically selected in the dropdownlist!
*
Shows the number of results like: "Showing 21-40 out of 54 results".
*
Provides a fallback page in case the pagination variable is altered. So if someone wants to go to page 99 when there are only 98 pages, it will redirect to the 'fallback' page you set for it! So you need to write custom code to take care of that. just provide the page where you want to redirect if the value was not set right!
I hope it can be included in the 2.1 release!

