An other option: try to add a js function at the beginning of 
PM.modifyQueryResultsFunctions array.

Maybe you have to send an empty array if you what to stop query result 
parsing.

for instance:

         parseResultsForImagesOnly: function(queryLayers, tplName) {
             var ret = queryLayers;
             if (queryLayers && tplName != 'iquery') {
                 for (var iLayer = 0 ; iLayer < queryLayers.length ; 
iLayer++) {
                     var currentLayer = queryLayers[iLayer];
                     // check layer name and do what you want
                     var layerName  = typeof(currentLayer.values[0]) != 
'undefined') ? currentLayer.values[0][0].shplink[0] : '';
                     if (layerName  == 'xxxxxxxxxxx') {
                         // .................
                         // .................
                         // .................
                         // .................
                         ret = [];
                         break;
                     }
                 }
             }
             return ret;
         }

Not tested, just for the idea...

bye

Thomas

Le 31/10/2014 17:52, Valerio a écrit :
> Hi,
> ok..I will try.
> Actually, it'd be a second query window: one (still active) that opens 
> a normal table, the other that opens a window with only images or 
> other fields from db.
> thanks
> Valerio
>
> 2014-10-31 17:44 GMT+01:00 Thomas RAFFIN <traf...@sirap.fr 
> <mailto:traf...@sirap.fr>>:
>
>     Hi
>
>     I think you only have to change the template in pm.query.js to
>     change the behavior. But I didn't try it...
>
>
>     Le 31/10/2014 17:34, Valerio a écrit :
>>     ​ Hi Thomas,
>>     ​ Your plugin for thumbnails would be very useful​ if published
>>     on pmapper 4!!
>>
>>     Moreover, do you know the existence of a plugin that open
>>     directly an image (bypassing query result window), as showed in
>>     youtube video linked by Firdaus?
>>
>>     thank you very much
>>     regards
>>
>>     Valerio
>>
>>
>>     2014-10-30 17:37 GMT+01:00 Thomas RAFFIN <traf...@sirap.fr
>>     <mailto:traf...@sirap.fr>>:
>>
>>         Hi,
>>
>>         We've got a plugin that could do the job:
>>
>>
>>
>>         It transform a field value a thumbnail (add the extension
>>         jpeg, png, ...
>>         if needed) with link that will open the image in an other
>>         browser page.
>>
>>         It requires to publish the directory that contains the images
>>         on the
>>         web., and a specific METADATA tag in your layer.
>>
>>         If it is what you want, tell me and I will check if it is
>>         possible to
>>         publish it on pmapper4.
>>
>>
>>
>>         Thomas
>>
>>         Le 29/10/2014 19:11,
>>         ​ ​
>>         Firdaus firdaus a écrit :
>>         > dear All,
>>         >
>>         > anyone has plugin in pmapper for displaying photo ?
>>         >
>>         > I saw a video in
>>         youtubehttp://www.youtube.com/watch?v=Ku3TsF9MOws
>>         <http://www.youtube.com/watch?v=Ku3TsF9MOws> where
>>         > it is using pmapper.
>>         >
>>         > thanks for your help in advance
>>         >
>>         
>> ------------------------------------------------------------------------------
>>         > _______________________________________________
>>         > pmapper-users mailing list
>>         > pmapper-users@lists.sourceforge.net
>>         <mailto:pmapper-users@lists.sourceforge.net>
>>         > https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>         >
>>         >
>>
>>         
>> ------------------------------------------------------------------------------
>>         _______________________________________________
>>         pmapper-users mailing list
>>         pmapper-users@lists.sourceforge.net
>>         <mailto:pmapper-users@lists.sourceforge.net>
>>         https://lists.sourceforge.net/lists/listinfo/pmapper-users
>>
>>
>
>

------------------------------------------------------------------------------
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to