Feature Proposal: Add something like $attachment to the format params in %SEACH

Motivation

This is a missing functionality.

AttachmentListPlugin allows you to display attachments but you can't combine it with the format="" param of %SEARCH

Description and Documentation

Examples

What I'm thinking of is something that works like this:

%SEARCH{"my search" format="
| $attachment | $topic |
"}

of course this needs more thinking, eg. how to display more than 1 attachment...

Impact

%WHATDOESITAFFECT%
edit

Implementation

-- Contributors: CarloSchulz - 12 Dec 2008

Discussion

What do you mean by saying "can't combine it with the format param"? You should be able to do the following:
%SEARCH{ ... format="   * $topic: $percntATTACHMENTLIST{ web=\"$web\" topic=\"$topic\" format=\"$dollarfileName\"}$percnt" ... }%
(untested)

-- OliverKrueger - 13 Dec 2008

Oliver, you are right. So that part was just me struggling getting a correct syntax.

Nonetheless, this should be a default addition to the format param..

-- CarloSchulz - 15 Dec 2008 - 13:41

to integrate kinosearching (and others) of attachments, I actually want a little more than this - may well become easier after I extract the FORMAT TML. (adding commitment on that assumption)

-- SvenDowideit - 21 Jan 2009

I would like to see the spec defined for the syntax in case of more attachments.

Other than that I have no reservations. When the spec is clear on this you can remove my name and set it in accepted.

-- KennethLavrsen - 21 Mar 2009

This seems a bit lost, as it's the only proposal in "ReadyForReleaseMeeting" state, and we don't have release meetings. So switching state to "Accepted" and setting the reason to 14-days-later.

-- CrawfordCurrie - 19 Feb 2010

na, de-accepting - we havn't worked out a syntax that we can use to get the info, so the proposal isn't ready to be worked on. (and the format refactor is still in progress)

CarloSchulz - would you like to propose a syntax for accessing the array of attachments, and the other attributes?

-- SvenDowideit - 09 Mar 2010

It really depends on what you want to display about the attachment. AttachmentListPlugin has quite a number of parameters for 1 attachment, and something like this would need to be combined with an attachment specifier.

-- ArthurClemens - 09 Mar 2010

We are no way nearer a spec

The example

%SEARCH{"my search" format="
| $attachment | $topic |
"}

used for topics with more than one attachment per topic. What do I get? A comma separated list of filenames?

All I need is a spec.

Crawford, I have give the application for feature proposals some work. It was not enough to change the written process. The ReadyForReleaseMeeting is now CommunityVote.

But this is not ready for vote because we need a spec before we can vote.

-- KennethLavrsen - 09 Mar 2010

You don't need $attachments.

%SEARCH{"1" type="query" topic="WebsitePersonas" format="$percentQUERY{$quot'$web.$topic'/attachments.name$quot}$percent"}%

yields (on trunk)

Searched: 1
irma.png,eric.png,don.png,ellen.png,lasse.png,turan.png,mik.png,johan.png,don_sm.png,ellen_sm.png,eric_sm.png,johan_sm.png,irma_sm.png,lasse_sm.png,turan_sm.png,mik_sm.png,Persona_Info_Needs.png
Number of topics: 1

-- CrawfordCurrie - 09 Mar 2010

More geeky but then again, the use of SEARCH to show attachments is probably rare so using the slightly more geeky QUERY escaped by percent may be preferred instead of making SEARCH a notch more complicated (and more geeky).

Carlo and Sven. Are you OK with the new QUERY as the solution to this? If so, maybe you want to pull your proposal.

-- KennethLavrsen - 09 Mar 2010

i'll be much happier when we get %!@QUERY{"$web.$topic'/attachments.name"}@%, but yes, that sounds like a start.

-- SvenDowideit - 10 Mar 2010

I take Sven's answer as a "Yes"

And I assume Carlo has not seen the QUERY yet as it is a while since we saw him here.

So I park the proposal. Revert is you disagree. This proposal is more than a year old.

-- KennethLavrsen - 24 Mar 2010
Topic revision: r15 - 24 Mar 2010, KennethLavrsen
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy