Hi,
Thanks for the latest changes on the channel entries paginate tag, great improvement.
For some clients i need to have a pagination where the top pagination layout is somewhat different from the bottom pagination layout.
Currently i made a small hack to the “add_pagination_data” function in the channel module:
switch ($position)
{
case "top" : $this->return_data = $this->EE->functions->prep_conditionals($this->paginate_data, array('top' => true, 'bottom' => false)) .$this->return_data;
break;
case "both" : $this->return_data = $this->EE->functions->prep_conditionals($this->paginate_data, array('top' => true, 'bottom' => false)).$this->return_data.$this->EE->functions->prep_conditionals($this->paginate_data, array('bottom' => true, 'top' => false));
break;
default : $this->return_data .= $this->EE->functions->prep_conditionals($this->paginate_data, array('top' => true, 'bottom' => true));
break;
}
With this hack i can do this:
{paginate}
{if top}
add this this line
{/if}
{current_page} of {total_pages}
{if bottom}
also add this line
{/if}
{/paginate}
Is it possible to include this functionality or to add an extra hook for add_pagination_data ?
Thanks in advance.
