Tags:
create new tag
, view all tags

Feature Proposal: Add $attachments to formatted search

Motivation

I'm surprised this isn't already present. Formatted Search needs a $attachments variable that would provide the number of attachments a topic has.

Motivation? Same as the rest of the variables. I want to see the meta data for the search results.

Description and Documentation

This value should be trivial to get... just count how many %META:FILEATTACHMENT are present.

from AddAttachmentsParamToFormat - There are 2 options, both should be considered together as they round out the existing syntax.

  • META{}
    • add a topic specifier META{topic="" ""}
    • add a format specifier META{topic="" format=""} instead of the default param that does not seem to allow customisation of output
  • SEARCH{"" format="$attachment(filename)"}% or similar, using a syntax that is consistent with query search.

Examples

Impact

Implementation

-- Contributors: VickiBrown - 06 Feb 2008

Discussion

Need to align the syntax used here with the content access syntax developed for %IF and %SEARCH{type="query". $formfield is already divergent, though it came first so it's excused.

The FormQueryPlugin uses the dollar syntax; for example: $attachments[0].name.

-- CrawfordCurrie - 06 Feb 2008

This can be worked in with ExtractAndCentralizeFormattingRefactor - in which we will be combining the format= processing code into a single re-useable module.

-- SvenDowideit - 06 Feb 2008

You might want to discern between all attachments (hidden included) and the displayed attachments (in the attachment table; hidden excluded).

-- ArthurClemens - 06 Feb 2008

See almost identical request at AddAttachmentsParamToFormat.

-- PeterThoeny - 16 Mar 2008

I've moved my proposal to here

-- SvenDowideit - 18 Mar 2008

I am changing this to ParkedProposal until we find an owner.

-- PeterThoeny - 2009-11-24

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