Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-06-13 11:07:12

gavnosis
Member
From: Milton Keynes, UK
Registered: 2005-03-12
Posts: 151
Website

Any further progress with an automatic list of files to download?

There’s an old-ish post with a rumour of a plugin to do this but no automatic solution…

Although at the moment I’m probably missing a trick, with this sort of thing:

<txp:file_download_link id="1">A file</txp:file_download_link>
<txp:file_download_link id="2">Another file</txp:file_download_link>

Does anyone use anything a bit more elegant?

E.g. I can automatically generate a list of sections in my site:

<txp:section_list active_class="active" break="li" class="nav" default_title="Home" exclude="article, search" include_default="1" wraptag="ul" />

What would be great is something like like a txp:file_list, to show a list of files (for download) grouped by category.

Thanks in advance,
Gvnss

Offline

#2 2008-06-13 11:10:56

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,451
Website GitHub

Re: Any further progress with an automatic list of files to download?

Doesn’t file_download_list do what you want?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#3 2008-06-13 11:48:39

gavnosis
Member
From: Milton Keynes, UK
Registered: 2005-03-12
Posts: 151
Website

Re: Any further progress with an automatic list of files to download?

Ahh, the old use-a-JCB-to-pot-a-geranium technique…

Thank you ‘Bloke’ (Stef), that’s exactly the sort of thing I’m after. What’s a little worrying is that I couldn’t manage to find a reference to file_download_list on my own…

…And there’s more! I can now see there’s a nice form for me to customise. (Form files, type files – How did I miss that one? Better and better.

Last edited by gavnosis (2008-06-13 11:58:41)

Offline

Board footer

Powered by FluxBB