Hello,
I'm trying to build some custom pagination links for one of my model
results, but i can't find anywhere some docs about how to change the
default html used by cake for this operation. I need to change the
default generation of these style:
<div class="disabled">Prev</div>
<span class="current">1</span> | <span><a href="#">2</a></span> |
<span><a href="#">3</a></span>
<a href="#">Next</a>
with something like this:
<ul class="nav">
<li><a class="current" href="#" title="">1</a></li>
<li><a href="#" title="">2</a></li>
<li><a href="#" title="">3</a></li>
<li><a href="#" title="">Next ›</a></li>
</ul>
I searched all over the book and api (even in this group), and all i
found was just the definitions for next() and prev() methods and their
arguments:
next($title = 'Next >>', $options = array(), $disabledTitle = null,
$disabledOptions = array())
prev($title = '<< Previous', $options = array(), $disabledTitle =
null, $disabledOptions = array())
i couldn't find anywhere an example of changing those default html
tags generated (or if it is possible) or the $options array for
example, what parameters can it have in this case and which of them
can help in my problem. I think this is what would help me better,
what parameters can have the options or disabledOptions arrays.
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---