Jump to content
Welcome to our new Citrix community!

Adding hypertext (HTML) to the strings.en.json file for NetScaler Gateway 12.1


Shane Paul

Recommended Posts

I'm following Sam Jacob's article at https://citrix.connectedcommunity.org/browse/blogs/blogviewer?BlogKey=5e8087de-e020-4a83-886b-93ee1caa6019&CLK=1c6824e9-1085-4266-9d45-5bd027ae230b#ItemCommentPanel, but I'm not a developer or a code guy, so I apologize for asking this question. But can someone spell it out for me specifically on how to add HTML code to the strings.en.json file? I'm trying to add links to Receiver downloads and I cannot get the syntax right. Every time I do it wrong, the text disappears. When I remove the bad syntax, the text comes back. Any help is much appreciated. Thank you!

Link to comment
Share on other sites

Hey Sam. 

 

I appreciate the assist with the info above, but I guess I'm just not understanding the syntax. I've provided the syntax I'm using in the string.en.json and when I go to the login page what I see is exactly how you see it below. The hypertext links do not work. What I'm expecting is that you won't see the actual URLs noted and that when you click on the "click here" links, they take you to the appropriate URL. 

 

My sincerest apologies, but any more help you might be able to offer would be greatly appreciated.

 

Thank you!

 

{"authReceiverOnly":"Customer name has approved specific versions of Citrix Receiver that can be used to access this website. To install the latest approved version of Citrix Receiver for Windows, <A HREF="https://www.citrix.com/downloads/citrix-receiver/windows-ltsr/receiver-for-windows-ltsr-latest.html">click here.</A> To install the latest approved version of Citrix Receiver for MAC, <A HREF="https://www.citrix.com/downloads/workspace-app/mac/workspace-app-for-mac-latest.html">click here.</A> If you are having trouble installing, or if Citrix Receiver isn't working as expected, <A HREF="https://support.citrix.com/article/CTX137494">click here</A> to download and run the Citrix Receiver Clean-up Utility. After the clean-up utility has ran, install the appropriate version of Citrix Receiver again. If you are still having issues, please contact the Service Desk at 847-618-4357 for help. Thank you."}

Link to comment
Share on other sites

Hi Shane,

 

I'm sorry that I only saw your question yesterday … unfortunately the CUGC blog does not notify authors when comments are left on a post.

It also appears that for the RfWebUI theme, you leave the HTML codes intact as they would appear within a regular HTML file.

The reason it was probably not working when you originally did it is because you probably used double-quotes within your HTML tags, which confused the json file.

Simply changing the internal quotes to single quotes should do the trick. So the text on the right hand side of the colon should be:

"Customer name has approved specific versions of Citrix Receiver that can be used to access this website. To install the latest approved version of Citrix Receiver for Windows, <a href='https://www.citrix.com/downloads/citrix-receiver/windows-ltsr/receiver-for-windows-ltsr-latest.html'>click here</a>. To install the latest approved version of Citrix Receiver for MAC, <a href='https://www.citrix.com/downloads/workspace-app/mac/workspace-app-for-mac-latest.html'>click here</a>. If you are having trouble installing, or if Citrix Receiver isn't working as expected, <a href='https://support.citrix.com/article/CTX137494'>click here</a> to download and run the Citrix Receiver Clean-up Utility. After the clean-up utility has ran, install the appropriate version of Citrix Receiver again. If you are still having issues, please contact the Service Desk at 847-618-4357 for help. Thank you."

Here's how it looked when I tried it out:

1536892957_RfWebUILinks.thumb.jpg.853f6cad968ca6893f04f502f63f8a93.jpg

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...