Single Page Content Pagination |
[eluser]vivdesigns[/eluser]
I've been trying to figure out how to paginate an article that runs too long, like how New York Times does on their website with their main feature articles that's 10,000 words long. So far, I've tried EE's basic pagination variables based off of their user guide, but no luck in getting that to show. Any help on this would be much appreciated.
[eluser]CroNiX[/eluser]
Do you have a specific URL to see this demonstrated? I went to the NYT website and didn't see what you are talking about.
[eluser]vivdesigns[/eluser]
Hi CroNiX. This is one of NYT's articles that's paginated: http://www.nytimes.com/2012/05/17/us/whi...ewanted=2& I think Mashable do this on some of their articles, too. That's the idea I'd like to use for a website.
[eluser]CroNiX[/eluser]
I'd bet they are storing the article as multiple pages/entries in the db and using normal pagination to access them. You could also come up with a way to split the text of a large (single) article into multiple pieces (using str_split or something) and then display them separately, like pagination, but it would be a lot more involved and you'd have less control than storing them as multiple pages to begin with.
[eluser]vivdesigns[/eluser]
I had a feeling they'd be doing something like that with their code. Unfortunately, time's not on my side to futz around with it. Wished EE put a word limit variable into their pagination to make this easier, like EE Hive Hacksaw. Thanks for your insight on this, CroNiX. Appreciate it. |
Welcome Guest, Not a member yet? Register Sign In |