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