Custom module's view supporting anchors/links in titles

LabKey Support Forum (Inactive)
Custom module's view supporting anchors/links in titles Leo Dashevskiy  2014-02-12 14:11
Status: Closed
 
Hello, folks!

I have my file begin.view.xml

Its first line used to be:

<view xmlns='http://labkey.org/data/xml/view' title='Immune Response Predictor'>


and we would like to make it a clickable link, so I tried something like this with inserting HTML:

<view xmlns='http://labkey.org/data/xml/view' title='<a href="http://google.com" target="blank">Immune Response Predictor</a>'>

Upon starting the server up, I get a parser error:

The following exception occurred while attempting to load view metadata from views/begin.view.xml: error: Illegal '<' found in attribute value. Use '&lt;' instead.

But if I try and use the '&lt;', then the string is inserted literally and not interpreted as HTML.


Is there any way to achieve what I'm after?

Thanks.
-Leo
 
 
Greg Taylor responded:  2014-02-12 16:26
Hi Leo,
Sorry, I do not think that what you are trying to do is currently possible. I would think that extending the view.xsd file to take another property that could be the title link would be relatively straightforward but this would require a small amount of development effort. In Java code, you can set the webpark link title like you would like but this is not currently possible in the view.xml.

Greg
 
Leo Dashevskiy responded:  2014-02-12 17:01
Ok, thanks, Greg!