[pmwiki-users] Listing of unresolved attachments in AttachTable recipe?

Eemeli Aro eemeli at gmail.com
Fri Apr 17 08:58:44 CDT 2009

Prompted by Karl's note, I finally got myself around to updating
Attachtable <http://www.pmwiki.org/wiki/Cookbook/Attachtable>. There
are some minor additions for prettier output and RecentChanges
logging, and the authentication difficulties ought to be now fixed,
but the biggest addition is a lookup for attachment references in wiki

The reference lookup is a bit on the slow side, as it requires all the
pages (by default, Attachtable only looks at pages in the same group)
to be parsed for attachment links. This is now done two different
ways: if the number of pages that need to be parsed is relatively low,
Attachtable overloads the $LinkFunctions['Attach:'] function and
properly parses each page; this should be as robust as possible.
However, if the number of pages is greater (as it often is)
Attachtable does a *much* simpler search through each page for links
to attachments that'll break if you have eg. attachment names
generated from page variables or a custom way of referring to

By default, then, missing/unresolved attachments are listed below
those that do exist and with names in italics.

Any bug reports (not yet tested in any IE) or further suggestions are
highly appreciated...


2009/4/14 Karl Schilke <schilkek at onid.orst.edu>:
> We are using AttachTable with our PmWiki installation with great
> success. The ability to restore previous versions of deleted files has
> been a lifesaver!
> Is there any way to enable the display of "unresolved" attachments in
> Attachtable? I often write large sections of Wiki text with many
> attachments, and it is somewhat tedious to scroll down through the
> text to the first red link, click it, locate the file to upload, click
> "Upload", and then return to the "View" tab, scroll down to the next
> red link, click it, locate the file, ...
> This activity could be avoided if the Attachtable included a list of
> all Attach: directives that did not yet have files associated with
> them, and allowed direct uploads from the Attach screen. I envision
> them presented as red links with the paperclip icon to maintain the
> paradigm used in page display. After uploading the file, the page
> would display the updated Attachtable list, allowing the user to
> continue making further upload/delete/rename operations.
> I'd be happy to help design and test this change, but I'm not familiar
> enough with PmWiki internals to undertake it myself.
> Thanks in advance,
>     -Karl Schilke, Oregon State University
> --
> "Every complex problem has a solution that is simple, direct,
> plausible and wrong." -H.L. Mencken
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users

More information about the pmwiki-users mailing list