I have custom property fields identified for our nodes and want to make one of them a link over to data in our company web site. If I just type in the link, it just shows up as text. Is there a way to make this a hyperlink?
Orion 9.5.1Replace showProperties[keyBreakable] = (value != String.Empty) ? valueBreakable : " ";with if (value.StartsWith("<a href")) { showProperties[keyBreakable] = value; } else { showProperties[keyBreakable] = (value != String.Empty) ? valueBreakable : " "; }Orion 10replace: showProperties[keyBreakable] = valueBreakable;with: if (value.StartsWith("<a href")) { showProperties[keyBreakable] = value; } else { showProperties[keyBreakable] = (value != String.Empty) ? valueBreakable : " ";
it doesn't look like you can do this. I tried to create an html href with a link and it show as a link, but it appears from the time we pull it from the db and compile it onto the web, it gets munged up and doesn't work. If someone has a workaround please post, otherwise I will add as an enhancement request
Before we upgraded to the latest version we used to be able to use Inline CSS and the text-decoration:underline property, but that doesn't appear to work any more.
I have it logged, but in 9.5 we completely changed the web infrastructure over to ASP.NET
Using 9.5.1, I created a custom node property with an href and link. From IE, got to Page --> View Source. If the html looks correct but clicking on the link takes you to a munged up URL, then this might help.
Go to SolarWinds\Orion\NetPerfMon\Controls and edit CustomPropertyList.ascx.
Replace showProperties[keyBreakable] = (value != String.Empty) ? valueBreakable : " ";with if (value.StartsWith("<a href")) { showProperties[keyBreakable] = value; } else { showProperties[keyBreakable] = (value != String.Empty) ? valueBreakable : " "; }
The problem seems to be with with a function called MakeBreakableString inside of the FormatHelper class. This should bypass its value for any field value beginning with "<a href".
If you find a better way to fix it, please post your answer.
Dave
Brandon, does this code make all CPs hyperlinked? I would like to apply this to only one CP.