Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Customising the look of pagination has always been a bitc...... a bit difficult. Lets make it easier shall we.

MEET, farPagination.cfc

CALL PAGINATION USING THE TAG:

<skin:pagination qRecordSet="qAllMyCustomers">
&nbsp;&nbsp; &nbsp;<cfdump var="#stObject#" expand="false" label="stObject" />
</skin:pagination>

TO CUSTOMISE THE PAGINATION OUTPUT, CREATE YOUR OWN farPagination webskin. The default is displayLinks.cfm

<cfoutput>
<div class="pagination">
&nbsp;&nbsp; <p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <skin:buildPaginationLink stLink="#getLink('first')#" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <skin:buildPaginationLink stLink="#getLink('previous')#" linkText="<<" />

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <cfloop from="#getPageFrom()#" to="#getPageTo()#" index="i">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <skin:buildPaginationLink stLink="#getLink(i)#" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </cfloop>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <skin:buildPaginationLink stLink="#getLink('next')#" linkText=">>" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <skin:buildPaginationLink stLink="#getLink('last')#" />
&nbsp;&nbsp; </p>
&nbsp;&nbsp; <h4>Page #getCurrentPage()# of #getTotalPages()#</h4>
</div>
</cfoutput>
  • No labels