[Qgis-user] qgis web client: hyperlink

flavio rigolon flavio.rigolon at gmail.com
Fri Oct 19 02:48:49 PDT 2012


>> I use a PostGIS view with a field where my links are contained (complete
>> html <a>-tag). The link field is created from a table field where only the
>> URL is contained.
>
> Many thanks Bernhard: I'll try in yhis way.

I've tried and it works as aspected!
The view structure for my test is something like this:

#= CREATE OR REPLACE VIEW view_name AS SELECT field_name1 AS name1,
field_name2 AS name2, '<a href="http://path/to/file"
onclick="window.open(this.href)">text for link</a>'::TEXT AS link,
the_geom, gid FROM table_name;

Thanks again for the hint :-)

flavio
-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments



More information about the Qgis-user mailing list