[Chameleon] Looking for a Widget

Robin Robin querada499 at hotmail.com
Fri Sep 10 14:45:17 EDT 2004


Thanks!  I haven't got that field set up yet but I changed it to just go to 
a preset page and that works.


>From: Jason Fournier <jfournier at dmsolutions.ca>
>To: Ken Sanderson <ken at rockies.ca>
>CC: chameleon at lists.maptools.org
>Subject: Re: [Chameleon] Looking for a Widget
>Date: Tue, 07 Sep 2004 13:10:19 -0400
>
>A simple implementation of this function could be the following:
>
>~ line 454 QueryResults.phtml::
>
>In the foreach( $aRows as $aRow ) you could build a URL using distinct 
>values from the queried layer then header("Location:") to that site. For 
>instance:
>
>header( "Location: http://www.mydomain.org/find.asp?id=".$aRow['linkid'] );
>
>Where linkid is a field in your queried layer specific to the point 
>queried.  Note that you'd probably want to add in some checking (eg, if 
>there's more than one result layer being queried OR if there's more than 
>one record returned for a given layer) to handle specific cases.  If you 
>just put the header in there without conditional checking you may get 
>unexpected results ;)
>
>Jason
>
>
>
>Ken Sanderson wrote:
>
>>If anyone tackles this and makes a 'hotlink' widget I wouldn't mind
>>using it as well.
>>
>>Probably tackle it if noone else does for an upcomming project.
>>
>>Ken
>>
>>-----Original Message-----
>>From: chameleon-bounces at lists.maptools.org
>>[mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Eric Bridger
>>Sent: September 7, 2004 10:22 AM
>>To: Robin Robin
>>Cc: chameleon at lists.maptools.org
>>Subject: Re: [Chameleon] Looking for a Widget
>>
>>
>>On Tue, 2004-09-07 at 10:52, Robin Robin wrote:
>>
>>>Does anyone know of a widget that works similar to identify, but instead 
>>>of
>>>showing all fields I would like a widget that looks at a specific
>>
>>field that
>>
>>>contains a url.
>>>
>>>For various areas in my map, we have summary reports which I would like 
>>>to
>>>display when the user clicks on that area.  Does this widget already
>>
>>exist?
>>
>>>If so, how do I get it?
>>
>>
>>As far as I know (I'm still a Chameleon beginner) it does not exist. I
>>recently created a Custom widget (based on the Query.widget.php) and the
>>QueryResults.phtml  (see: htdocs/widgets/Query/) If you know PHP,
>>QueryResults.phtml is easy to modify and will allow you to do whatever
>>you want with the query results.
>>
>>
>>
>>_______________________________________________
>>Chameleon mailing list
>>Chameleon at lists.maptools.org
>>http://lists.maptools.org/mailman/listinfo/chameleon
>>
>>
>>_______________________________________________
>>Chameleon mailing list
>>Chameleon at lists.maptools.org
>>http://lists.maptools.org/mailman/listinfo/chameleon
>>
>
>--
>_____________________________
>
>   Jason Fournier
>   Applications Development
>
>   DM Solutions Group Inc.
>   jfournier at dmsolutions.ca
>   www.dmsolutions.ca
>   613.565.5056 x18
>
>_______________________________________________
>Chameleon mailing list
>Chameleon at lists.maptools.org
>http://lists.maptools.org/mailman/listinfo/chameleon

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus



More information about the Chameleon mailing list