![]() |
#1 |
Junior Member
Join Date: Jan 2015
Posts: 28
![]() |
![]()
Hello,
I have a dashboard plugin that displays tutorial links. If the user click the link, I would like to open tutorial url. Dashboard code: Code:
<metadata name="dashboard.resources" type="infolist"> <rowdata> <rowgroup name="tutorials"> <row name="tutorial_1" type="link"/> <row name="tutorial_2" type="link"/> </rowgroup> </rowdata> </metadata> I tried following plugin code but it does not work: Code:
.. elem = "<?xml version='1.0'?><doc><url>http://example.com</url></doc>" print answer.redirect(elem) .. Thanks, -Maciej |
![]() |
![]() |
![]() |
#2 |
Junior Member
Join Date: Feb 2015
Posts: 3
![]() |
![]()
Hello!
This dashboard block doesn't support external links. You can make link to manager function, which redirect to external link. Link to manager function for your example will be looks like this: <doc><tutorial_1 func="MGRFUNC">LINK LABEL</tutorial_1></doc> Your manager function(plugin) should return redirect: <doc><ok type="blank">http://example.com</ok></doc> |
![]() |
![]() |
![]() |
Thread Tools | |
|
|