 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
pecus
Joined: 31 Oct 2006 Posts: 3
|
Posted: Wed Nov 29, 2006 1:43 am Post subject: Smarty Pager links are wrong |
|
|
When passing selfPath as a renderer option, in the common case of using rewrites for pages URLs, while the columns link inherit the correct link, paging links do not.
This happens with Smarty renderer (which calls Pager renderer and Pager package).
It looks like a bug to me but maybe I'm doing something wrong.
Here's the code:
| Code: |
$datagridOptions["generate_columns"] = true;
$datagridOptions["fields"] = array_unique(array_merge($genericFields, $GC_extraFields));
//$SQLresult is array()
$test = $datagrid->bind($SQLresult, $datagridOptions);
$rendererOptions = array(
'sortIconASC' => '⇑',
'sortIconDESC' => '⇓',
'selfPath' => '/path/to/rewrite/url/page',
'excludeVars' => array ('lang', 'area', 'category')
);
$datagrid->fill($smarty, $rendererOptions);
|
Smarty template:
| Code: |
{getPaging prevImg="«" nextImg="»" separator="|" delta="5"}
|
Code is straight from example in Smarty Renderer.
Platform: winXP, PHP 4.3.10, Apache 1.3.33.
Pager 2.4.2 stable
Structures_DataGrid 0.7.2 beta
Structures_DataGrid_Renderer_Pager 0.1.0 beta
Structures_DataGrid_Renderer_Smarty 0.1.2 beta |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1053
|
|
| Back to top |
|
 |
pecus
Joined: 31 Oct 2006 Posts: 3
|
Posted: Mon Jan 08, 2007 12:05 pm Post subject: |
|
|
For reference, the bug was opened and fixed. See the CVS version if you need a quick fix, or wait for the next release of the package. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|