[pmwiki-users] Attach: Syntax and the Default Upload Quick Reference

Patrick R. Michaud pmichaud at pobox.com
Fri Feb 3 15:45:47 CST 2006


On Fri, Feb 03, 2006 at 02:19:06PM -0700, H. Fox wrote:
> Very simple.  If you click on the delta in
> 
>    MyDog.jpg Δ
> 
> you see
> 
>   Attach:MyDog.jpg
> 
> in the scratch area, which you can copy and paste into your wiki page.
> ...
> How about
> 3b) Author (somehow) selects an attached file from a drop-down list. 
> (Use AJAX?)

If we're assuming javascript, then a simpler approach is probably to
place all of this useful behavior on to the existing "Attach file" 
button in the edit form.  So then the sequence would be:

   - Author presses "Attach file" in the button bar
   - A window pops up showing the list of available attachments for
     the page (perhaps with navigational elements to find attachments
     for other pages or groups)
   - Selects the file to be attached
   - The javascript then inserts "Attach:author_selection.txt" directly into
     the edit page at the current cursor position.

Pm




More information about the pmwiki-users mailing list