Tags:
create new tag
view all tags

Question

In FormQueryPlugin there's nice Tutorial about how to use the new attachment feature of the plugin to get tables of attachments that meet specific criterias. Unfortunately it doesn't work for me as described there. It seems that it can not resolve the variable !$topic.topic causing the first column of the generated table to contain

Undefined field topic.topic (defined fields are: path, _up, user, attr, name, comment, date, size, version)
instead of the expected name of the topic. Maybe I'm missing something, cause in FormQueryPlugin it says very mysteriously:
Actiually, this isn't quite enough. What we really want to do is list the
I am running the very latest prerelease version of Cairo and the latest versions of all ContribPackage modules. Where may lay my error? Where shall I look deeper? May the sequence of the installed plugins be of importance? ...

Environment

TWiki version: TWikiBetaRelease2004x07x30
TWiki plugins: DefaultPlugin, SpreadSheetPlugin, ChildTopicTemplatePlugin, MacrosPlugin, ActionTrackerPlugin, BeautifierPlugin, CalendarPlugin, ChartPlugin, CommentPlugin, EditTablePlugin, FormQueryPlugin, GaugePlugin, HeadlinesPlugin, InterwikiPlugin, LdapPlugin, LocalCityTimePlugin, NotificationPlugin, RandomQuotePlugin, RecursiveRenderPlugin, RenderListPlugin, SessionPlugin, SlideShowPlugin, SmiliesPlugin, TWikiDrawPlugin, TablePlugin, TocPlugin, TreePlugin
Server OS: RedHat Linux
Web server: Apache 1.38
Perl version: 5.6.1
Client OS: Windows 2000, Linux
Web Browser: Internet Explorer, Mozilla

Thanks a lot!

-- FranzJosefSilli - 26 Aug 2004

Answer

Apologies, Franz, it's a documentation problem. I retired $topic from the schema, because I wanted a "parent" pointer throughout the schema and didn't want to use different names in different places. So the $topic reference in attachments has been changed to the more consistent _up. The full schema is in DBCacheContrib, if you are ever unable to extract the data you want. $_up.topic should work.

I'll fix the documentation first chance I get.

-- CrawfordCurrie - 28 Aug 2004

Great! It works now. Thanks Crawford! Now I am able to provide the long desired attachment search functionality to my users at work. I hope they will appreciate it, although I fear that they now will start to upload even more attachments to the system. frown

-- FranzJosefSilli - 29 Aug 2004

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2005-03-20 - ThomasWeigert
 
  • 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.