21309 Posts in 5738 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 998 Views |
-
Paginate

26 January 2011 at 12:30am
Hi guys i want paginte records in my db... but i want first charge pages for html... example
Page1
<div class="item">
<ul>
<% control getObjects %>
<li>$pergunta</li>
<% end_control %>
</ul>
</div>Page2
<div class="item">
<ul>
<% control getObjects %>
<li>$pergunta</li>
<% end_control %>
</ul>
</div>Page3
<div class="item">
<ul>
<% control getObjects %>
<li>$pergunta</li>
<% end_control %>
</ul>
</div> -
Re: Paginate

26 January 2011 at 1:14am
http://doc.silverstripe.org/sapphire/en/reference/dataobjectset#paging encouragly says FIXME
and this has not been migrated http://doc.silverstripe.org/private:recipes:paginationbut you could always checkout how templates\Layout\Page_results.ss as this shows parsing a DataObjectSet (Results) to create pagination
-
Re: Paginate

26 January 2011 at 1:58am Last edited: 26 January 2011 1:58am
if works this
<% control getObjects.Pages %>
<div class="item">
<ul>
<% control getObjects %>
<li>$pergunta</li>
<% end_control %>
</ul>
</div>
<% end_control>
why dont work?
| 998 Views | ||
|
Page:
1
|
Go to Top |


