From sergiu@xwiki.com Fri Jan 16 05:22:18 2009 From: Sergiu Dumitriu To: xwiki-users@xwiki.org Subject: Re: [xwiki-users] Generate Url to delete attached object.. Date: Fri, 16 Jan 2009 05:35:35 +0100 Message-ID: <49700E97.3050708@xwiki.com> In-Reply-To: <1232043572422-2164022.post@n2.nabble.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4048811525137738865==" --===============4048811525137738865== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Kevin_C wrote: > OK, that got me closer but for some reason the generated Url is fubarred: >=20 > My code: > [delete>$doc.getURL('objectremove', > 'classname=3D${doc.fullName}&classid=3D${topic.number}&xredirect=3D${re= dirurl}')] >=20 > Generated Url: > http://localhost:9090/xwiki/bin/edit/FranchiseTax/%2Fxwiki%2Fbin%2Fobjectre= move%2FFranchiseTax%2FTopicsClass?parent=3DFranchiseTax.TopicsClass The square brackets syntax only accepts document names, and it is supposed to generate URLs. You already have the URL, so there's no need to put it in brackets. For this you should just use an HTML link: delete > It's adding: /xwiki/bin/edit/FranchiseTax/ onto the front of the Url for > some reason. The current page I'm viewing is: > http://localhost:9090/xwiki/bin/view/FranchiseTax/TopicsClass >=20 > and I've modified the display of the objects such that the displayed table > contains a delete link as well as the property values. What am I doing > wrong? >=20 >=20 > Thanks! > .:. Kevin --=20 Sergiu Dumitriu http://purl.org/net/sergiu/ --===============4048811525137738865==--