[Cartoweb-users] How to remover backslashes to the url string
Alexandre Saunier
alexandre.saunier at camptocamp.com
Fri Mar 31 10:58:14 EST 2006
Hello,
is your link base URL provided through the template or using some PHP
code? Is it the base URL of your CartoWeb?
Note that in most cases, you may conveniently use the CartoWeb
"tableRules" feature to modify the content of your query results,
including for generating HTML links.
TableRules are explained in the manual:
http://cartoweb.org/doc/cw3.2/xhtml/dev.newplugin.html#dev.newplugin.special.tables
An example is implemented within the test_main project => have a look at
the testMainTableRules plugin:
projects/test_main/plugins/testMainTableRules/client/ClientTestMainTableRules.php
AS
Xiaoyun Tang wrote:
> Hi,
>
> I made some changes to tables.tpl such that I am able to add links to
> the query result table. But the template automatically adds a backslash
> "/" to the url which make it impossible to link out to other resource.
>
> For example, I have a query result table and I want to link to other web
> services, say http://myservices.org, by using the Id attribute, like
> "http://myservices.org?parameter=Id". But when I check the url string
> from the query result table, I found out a backslash is automatically
> added to the url by the template, so the call becomes
> "http://myservices.org/?parameter=Id", please note the backslash "/"
> after "org".
>
> Can anyone help me out, please?
>
> Thanks,
>
> --
> Xiaoyun Tang
More information about the Cartoweb-users
mailing list