[Chameleon] Looking for a Widget
Jason Fournier
jfournier at dmsolutions.ca
Tue Sep 7 13:10:19 EDT 2004
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
More information about the Chameleon
mailing list