00665: Allow customization of [[PmWiki/PageDirectives#attachlist|attachlist]] output

Summary: Allow customization of attachlist output
Created: 2006-02-11 11:01
Status: Open
Category: Feature
From: Pm, Simon
Assigned:
Priority: 5555554 3
Version: 2.1.beta24
OS:

Description: Currently the attachlist output cannot be customized, this should be fixed.


I'm adding to this rather than creating a new entry
Make attachlist more like page lists. In particular provide the parameters

  • group=
  • name=

to allow the attachlist to display files from a different group or page. Consider adding

  • fmt=
  • order=
  • count=

Currently the attachlist has only the following parameters

  • (:attachlist NAME:) shows a list of attachments of the group or page NAME.
  • (:attachlist ext=xxx:) specifies an extension for filtering by type of file.
  • (:attachlist *:) shows the uploads directory and permits browsing of all uploaded files by directory
(:attachlist *:)
  • Cjc Δ ... 28 bytes ... August 09, 2015, at 09:02 AM
  • Cookbook Δ ... 114,688 bytes ... July 14, 2018, at 06:08 AM
  • Cookbook-V1 Δ ... 12,288 bytes ... August 09, 2015, at 08:45 AM
  • EmacsModes Δ ... 4,096 bytes ... August 09, 2015, at 08:39 AM
  • lock.gif Δ ... 549 bytes ... August 09, 2015, at 08:50 AM
  • lock.png Δ ... 4,765 bytes ... August 09, 2015, at 08:50 AM
  • Main Δ ... 6 bytes ... July 03, 2018, at 07:49 AM
  • PITS Δ ... 4,096 bytes ... August 14, 2017, at 09:43 AM
  • Pm Δ ... 119 bytes ... August 09, 2015, at 08:39 AM
  • PmCal Δ ... 128 bytes ... August 09, 2015, at 09:00 AM
  • PmWiki Δ ... 4,096 bytes ... August 09, 2015, at 08:39 AM
  • Skins Δ ... 114,688 bytes ... July 14, 2018, at 06:08 AM
  • Test Δ ... 8,192 bytes ... October 12, 2016, at 09:16 AM
  • TestProtected Δ ... 27 bytes ... June 06, 2016, at 08:54 PM
  • TestW7 Δ ... 4,096 bytes ... July 06, 2018, at 09:39 PM
(:attachlist Pm:)
(:attachlist ext=gif:)

I agree with the above, plus I would love to see a number of attachlist specific variables such as {$$FileDate} {$$FileSize} and so on. swestrup October 06, 2007, at 08:42 AM


Would like to see support for filtering out extentions, i.e

  • ext= -jpg

VKrishn January 13, 2013, at 03:46 AM


References: