Tags:
create new tag
view all tags

Question

Is there a way to create an "Add link here" button that allows the user to select an attachment from a list, and inserts a link right after the button?

A little background on what I'm trying to do. We have a weekly meeting with an associated TWiki page. For each week, someone adds a new table containing these fields:

Topic Presenter Duration Materials

The page uses EditTablePlugin to simply this table generation. However, it is up to the presenter to attach the relevant docs to the topic, and add links in the Materials column (the group is >200 in size and there are a number of people who are not very comfortable with editing.)

It would be nice to be able to put the above mentioned "Add link" button to in the last column to greatly simplify the process. In fact, it could be extended to insert anything: text, CamelCase links, attachments links, etc.

I tried looking at using CommentPlugin with anchors, but TWiki won't let me put anchors in a table.

Or if anyone else has other ideas on how to set up such meeting topics, I am all ears.

Thanks.

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories: Missing functionality, Deployment, Plugins

-- PankajPant - 05 Oct 2005

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

I missed the most obvious solution. If the "Add link" button is created through CommentPlugin itself, then all I need is to specify location = before or after.

Now all I need is to figure out how to get the attachment list into the select box ... FormattedVarForAttachmentList looks promising.

-- PankajPant - 06 Oct 2005

Would so many comment boxes cause any performance issues?

And I guess I'll have to use SpreadSheetPlugin to compile the file list once per page, instead of once per Add Link button.

-- PankajPant - 06 Oct 2005

It might be easier for people if you create a simple app where each weekly meeting has its own topic. That way:

  • You can create a default weekly topic ahead of time
  • Presenters edit the topic and fill in the details in the form
  • Presenters simply attach files to that topic (no clutter from previous meetings)
  • An index page pulls the data out of the meeting topics and displays it in table format.

See example MeetingMinutes (without TWikiForms) and ChangeRequest (with form).

There is no support at this time to get the list of fileattachments to build an "add link" button. But: People can checkmark the "link" button while attaching the file. With a multi-hit search you can build a list of all attachment bullets. (For convenience you can preconfigure the "link" button as checked with the ATTACHLINKBOX setting. Do that in the WebPreferences. See TWikiPreferences for details)

-- PeterThoeny - 06 Oct 2005

I had thought of the "new page for each week" path, but I'd rather stay away from that. I'm trying to find a generic way to support all the various work group meetings that go on each week. The number of pages quickly start multiplying. One topic per workgroup seems to be much more tractable.

Thanks for the pointers though.

-- PankajPant - 06 Oct 2005

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2005-10-06 - PankajPant
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.