Welcome Guest, Not a member yet? Register   Sign In
Pagination help!
#12

[eluser]aquary[/eluser]
would be more like.... pagination create links like this:

/content/show/1
/content/show/2
/content/show/3

Then in you controller, or view, or even directly in MYSQL, you'd have to grap the content according to the page number.... something like...

Code:
<?
// make the content... pageable
$content=explode('[PAGEBREAK]', $content);
// now you have array of content in pages. so echo it?
echo $content[$page_number-1);
?>

Shouldn't be too bad... and ou could even echo them all with a wrapper block for each of them, so you could use javascript to change the page directly without loading or ajaxing.

Code:
<div class="page">
&lt;!-- page 1--&gt;
</div>
<div class="page">
&lt;!-- page 2--&gt;
</div>
<div class="page">
&lt;!-- page 3--&gt;
</div>
// Then use jQuery or something to show/hide contents base on the number of the page

Huh? sees to be a good idea for me to use it as a kind of pagination for my "sometime as long as bible" blog. :-)


Messages In This Thread
Pagination help! - by El Forum - 03-15-2012, 04:40 AM
Pagination help! - by El Forum - 03-15-2012, 05:32 AM
Pagination help! - by El Forum - 03-15-2012, 05:46 AM
Pagination help! - by El Forum - 03-15-2012, 06:45 AM
Pagination help! - by El Forum - 03-15-2012, 11:32 AM
Pagination help! - by El Forum - 03-15-2012, 11:58 AM
Pagination help! - by El Forum - 03-16-2012, 12:58 AM
Pagination help! - by El Forum - 03-16-2012, 03:31 PM
Pagination help! - by El Forum - 03-20-2012, 07:45 AM
Pagination help! - by El Forum - 03-20-2012, 08:17 AM
Pagination help! - by El Forum - 03-21-2012, 02:08 AM
Pagination help! - by El Forum - 03-21-2012, 02:28 AM
Pagination help! - by El Forum - 03-21-2012, 03:00 AM
Pagination help! - by El Forum - 03-21-2012, 06:06 AM
Pagination help! - by El Forum - 03-21-2012, 06:15 AM
Pagination help! - by El Forum - 03-21-2012, 06:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB