r7 - 18 Mar 2008 - 06:52:23 - SvenDowideitYou are here: TWiki >  Codev Web > ChangeProposal > FeatureRequest > AddAttachmentsVarToFormattedSearch
Tags:
, create new tag

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

 
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r7 < r6 < r5 < r4 < r3 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo