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.
--
FranzJosefSilli - 29 Aug 2004