Kevin_C wrote:
> OK, that got me closer but for some reason the generated Url is fubarred:
>
> My code:
> [delete>$doc.getURL('objectremove',
> 'classname=${doc.fullName}&classid=${topic.number}&xredirect=${redirurl}')]
>
> Generated Url:
> http://localhost:9090/xwiki/bin/edit/FranchiseTax/%2Fxwi
Seems like maybe it is a bug with creating links using square brackets as the
following works as expected:
{table}
Topic | T.A.C. Rule |
#foreach($topic in $topics)
#set($delUrl = $doc.getURL("objectremove",
"classname=${doc.fullName}&classid=${topic.number}&xredirect=${redirurl}"))
$topic.t
OK, that got me closer but for some reason the generated Url is fubarred:
My code:
[delete>$doc.getURL('objectremove',
'classname=${doc.fullName}&classid=${topic.number}&xredirect=${redirurl}')]
Generated Url:
http://localhost:9090/xwiki/bin/edit/FranchiseTax/%2Fxwiki%2Fbin%2Fobjectremove%2FFran
Kevin_C wrote:
> Ooops, I found it. It's "objectremove" now all I need to do is find out which
> index the object to remove is.
$doc.getURL('objectremove',
"classname=${obj.getxWikiClass().getName()}&classid=${obj.number}")
--
Sergiu Dumitriu
http://purl.org/net/sergiu/
_
Ooops, I found it. It's "objectremove" now all I need to do is find out which
index the object to remove is.
--
View this message in context:
http://n2.nabble.com/Generate-Url-to-delete-attached-object..-tp2163415p2163430.html
Sent from the XWiki- Users mailing list archive at Nabble.com.
_
I have the following code stolen directly from the Blog Categories app:
$doc.getURL( Add New Topic
Is there an "objectdelete" action for getURL. This is probably in the code
but I don't have the sources and it's not in the API docs.
Thanks!
.:. Kevin
--
View this message in context:
http://