hcl-bot
1
Hi Developers,
What is the best way to create a place in a document for users to create hyperlinks to web pages… I have a rich text field.
More importantly, is there an easy way to have these links show in a view? Can they be active from the view?
Thanks, Paul
hcl-bot
2
Subject: Hyperlinks
Views can not display rich text.
The best way to display hyperlinks in a web view is to calculate them, based on one or more fields.
What I would do is to have two fields in the form, ‘URL’ and ‘LinkTitle’.
Then your column formula in the view would be something like this:
“” + LinkTitle + “”
You would of course add one or more classes to the A tag, as well as an ID. I would use the Document UNID for that:
“” + LinkTitle + “”
Something like that.
hcl-bot
3
Subject: Couldn’t get it to work
Hi Karl-Henry,
I tried but couldn’t get it to work. I don’t know HTML so perhaps I missed something related to that.
I used your formula exactly has you had it:
“” + LinkTitle + “'”
This is what the view looks like (the…are a just ID characters):
<a href='http://tee2net.btv.ibm.com/inception/feh/orders/10129’class=‘linkNotesDocument’id=‘8EB....EEF8’>10129</a>’
Any idea what might be wrong?
Thanks, Paul
hcl-bot
4
Subject: Thanks
Thanks Karl, I haven’t had time to give this a try but pretty sure I understand what you technique is.
Would be nice to be able to extract this info from a hyperlink created within a rich text field.
Take care, Paul