Suggested preprocess variables
| Project: | Pagination (Node) |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
First let me say thank you for this module. One thing I love about it is its simplicity, and the code is very clean.
One thing we want to do is include the "page title" somewhere on our page, maybe even as the Drupal page title (we're undecided exactly). I assume from looking at the code that there is no way to have the page title (rather than the node title) actually replace the $title variable passed through to template files.
But, it might be nice to include some additional preprocess variables to enhance the ability of theme designers to theme paged nodes.
To solve this, I added the following to the current dev code (at about line 336):
if ($style || variable_get('pagination_filter', 1) ) {
$variables['content'] = preg_replace($pg->re_custom, '', $variables['content']);
$headers = $pg->getHeaders($variables['node']->nid);
$page = $pg->getPageVar();
$variables['pagination']['page_header'] = $headers[$page];
$variables['pagination']['page_number'] = $page;
}It's made it possible for us to customize our page templates nicely.
Is there another/better way to do this?

#1
Hello!
Sorry for the late response, that's definitely fine. I'll add those variables to the next version.