Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-12-09 15:49:41

Dufresne
Member
Registered: 2005-09-19
Posts: 22

Offsetting Download list

Hi guys, i’ve searched the manual and the forums but can’t seem to find an answer to whether it is possible to offset download_lists so that it works like offset in the article tag.

The reason i ask is that i want to apply different emphasis to the latest download but not repeat the same file download in the section below which shows the second most recent onwards.

Hope that makes sense.

Dufresne

Offline

#2 2005-12-09 16:29:01

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Offsetting Download list

You can in a “hackish” way: limit="offset,limit"

To quote myself:

…it’s not a hack if we’re talking about databases, this is standard SQL. It could be considered a hack for Textpattern, simply because it may not be obvious which tags you can do this for or not, and it certainly isn’t very clean.

Last edited by Mary (2005-12-09 16:29:14)

Offline

#3 2005-12-09 16:34:04

Dufresne
Member
Registered: 2005-09-19
Posts: 22

Re: Offsetting Download list

Thanks for the response Mary, is there any plans to make a non-hack version in later releases?

I’ll use the method you suggested but can you just clarify where i tell it to offset – do i replace the offset and limit with the numbers i want?

Cheers,

Dufresne

Offline

#4 2005-12-09 16:53:25

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Offsetting Download list

…can you just clarify where i tell it to offset – do i replace the offset and limit with the numbers i want?

That’s correct.

…is there any plans to make a non-hack version in later releases?

Probably not. Little changes like this will only get added because someone wants them and so creates and shares a patch. It’s pretty simple to add, so I’ll send in a patch for it for you. :)

Offline

#5 2005-12-09 16:56:48

Dufresne
Member
Registered: 2005-09-19
Posts: 22

Re: Offsetting Download list

Groovy thanks :D

Offline

#6 2005-12-09 17:58:31

thebombsite
Archived Plugin Author
From: Exmouth, England
Registered: 2004-08-24
Posts: 3,251
Website

Re: Offsetting Download list

So <code><txp:file_download_list /></code> accepts what might be termed the “old-fashioned version of offset”? That ought to be in the Manual.


Stuart

In a Time of Universal Deceit
Telling the Truth is Revolutionary.

Offline

Board footer

Powered by FluxBB