Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2009-09-18 15:38:30

jpdupont
Member
Registered: 2004-10-01
Posts: 752

How group links and files by pages ?

Is it possible to list links or files like articles, 5 by 5 with pagination ?
I know it’s possible to display the 5 firsts links or files with limit=… But the nexts ?
Any idea to build a links of files collection easy to navigate ?

Offline

#2 2009-09-18 16:27:27

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: How group links and files by pages ?

Have you looked into a jQuery paging script? There are plenty available.


Code is topiary

Offline

#3 2009-09-18 19:18:30

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: How group links and files by pages ?

Another idea (for files) is to use upm_file which let’s you easily associate files with articles through a custom field.
This way you will still benefit from article paginaton.

Offline

#4 2009-09-19 08:37:31

jpdupont
Member
Registered: 2004-10-01
Posts: 752

Re: How group links and files by pages ?

Thanks …
The problem is more with links, as I want to build links collections.
As jQuery scripts hide some parts of the code, all the links must be loaded at the same time : not so fine …
But some good point is to play with this and limit with categories.

Offline

#5 2009-09-19 11:03:33

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: How group links and files by pages ?

jpdupont wrote:

As jQuery scripts hide some parts of the code, all the links must be loaded at the same time : not so fine …

I figured that with links or files it is reasonable to load them all at once — each item is small, unlike articles or images. And, once loaded, the paging would be fast.


Code is topiary

Offline

#6 2009-09-28 15:30:38

Fede
Member
From: BA
Registered: 2009-09-28
Posts: 10

Re: How group links and files by pages ?

This forum is great! I need to say this because this is my first post…

Now going back to the topic:

Is there a way to associate the lists of links or files with the txp:article, in order to use the native pagination from txp ? this way you could even use all the article-related tags (such as comments) ?

Last edited by Fede (2009-09-28 15:33:40)

Offline

#7 2009-09-28 15:49:04

jsoo
Plugin Author
From: NC, USA
Registered: 2004-11-15
Posts: 1,793
Website

Re: How group links and files by pages ?

You could make a separate article for each link and for each file, with a couple of options for how to associate each article with its respective link or file, but what a pain that would be. I still think jQuery sorting is the way to go (I say that even though I am pretty weak at JavaScript).

It would not be particularly difficult to make a plugin for paginating link and file lists. Various image plugins, mine included, do pagination for galleries. I just don’t see this as a compelling need, because of the jQuery option.


Code is topiary

Offline

#8 2009-09-28 15:52:29

Fede
Member
From: BA
Registered: 2009-09-28
Posts: 10

Re: How group links and files by pages ?

jsoo wrote:

You could make a separate article for each link and for each file, with a couple of options for how to associate each article with its respective link or file, but what a pain that would be. I still think jQuery sorting is the way to go (I say that even though I am pretty weak at JavaScript).
It would not be particularly difficult to make a plugin for paginating link and file lists. Various image plugins, mine included, do pagination for galleries. I just don’t see this as a compelling need, because of the jQuery option.

I will give jQuery a try, thankyou! ;)

PS: Where should i look for this script? TY!

Last edited by Fede (2009-09-28 15:52:40)

Offline

#9 2009-09-28 16:01:31

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,732
Website

Re: How group links and files by pages ?

For example: jquery pagination (demo) obtained by googling for those two words :-P


TXP Builders – finely-crafted code, design and txp

Offline

#10 2009-09-28 16:09:40

Fede
Member
From: BA
Registered: 2009-09-28
Posts: 10

Re: How group links and files by pages ?

jakob wrote:

For example: jquery pagination (demo) obtained by googling for those two words :-P

Thanks!
Ive also found some by googling, like the cycle plugin , but yours is much simpler ! (thats why I always ask) :D

Offline

#11 2009-09-29 19:07:48

Fede
Member
From: BA
Registered: 2009-09-28
Posts: 10

Re: How group links and files by pages ?

Sill haven’t found a proper solution… Ive opened this thread for script suggestions

Offline

Board footer

Powered by FluxBB