Tags:
create new tag
view all tags

Question

I want to be able to sort the FileAttachments by Name. Presently the Attachment column in the Table links to the FileAttachment topic. I want to be able to configure Twiki so that I can sort by that column.

I suspect that I'll have to modify a perl module, perhaps Attach.pm.

The first thing I need to figure out is how is this link to the FileAttachment Topic being set?

Environment

TWiki version: TWikiRelease04Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, EditTablePlugin, RenderListPlugin, SlideShowPlugin, SmiliesPlugin, SpreadSheetPlugin, TablePlugin
Server OS: FreeBSD 4.10
Web server: Apache 2.0.55
Perl version: 5.8.7
Client OS: Suse Linux 9.2
Web Browser: firefox 1.0.7
Categories: Missing functionality, Plugins

-- MattRodriguez - 21 Oct 2005

Answer

I suggest you install the forthcoming DakarRelease as it provides this feature.

Try mousing over the Attachment column of http://develop.twiki.org/~develop/cgi-bin/view/Sandbox/TestTopicAttachmentS

If you are wondering when it will be released, just as soon as the Bugs:WebHome have been squashed.

You can help by installing Beta 3 and giving feedback, especially in terms of testing and fixing any plugin compatibility issues.

-- MartinCleaver - 21 Oct 2005

In Cairo you can edit attachtables.pattern.tmpl (in templates folder).

Change line 6:

| *I* | *[[%TWIKIWEB%.FileAttachment][Attachment]]* | *Action* | *Size* | *Date* | *Who* | *Comment* |%TMPL:END% 
to:
| *I* | *Attachment* | *Action* | *Size* | *Date* | *Who* | *Comment* |%TMPL:END% 

-- ArthurClemens - 22 Oct 2005

I've successfully used the Attachment sorting featurn on the development twiki. I've changed to the attachtables.pattern.tmpl file and then the attachtables.tmpl. The link was still pointing to the FileAttachment Topic.

-- MattRodriguez - 24 Oct 2005

Ok I've finally figured this out. It can be done by editing the attachtables.pattern.tmpl file. I was editing the template file, but I wasn't in the $cfg{TemplateDir}, so my changes had no effect.

-- MattRodriguez - 14 Nov 2005

Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2005-11-14 - PeterThoeny
 
  • 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-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.