Jump to content
Welcome to our new Citrix community!

RfWebUI Theme - Adding Footer inc Email and Links


Paul Cross

Recommended Posts

I created a rewrite policy for a customer to add a footer to their theme based on the RfWebUI theme so thought I'd add it here in case anyone else wants to make use of it.

 

Screenshot.thumb.png.f492d8c3daa736284f1792b759a577fc.png

 

I’ve added options to add an email address which will open the default email client, add a link that can open to a something link the Citrix Receiver download page and insert a links bar that can be customised as required. All links open in new tabs.

 

The policy works by appending a new div tag after the customAuthBottom class:

 

Screenshot2.png.thumb.gif.cde1b189f79b89d141f8101ce9a6d261.gif

 

 

Simply paste the code into putty and bind to the GW with the RfWebUI or custom theme with based on the RfWebUI theme and you’re good to go.

 

add rewrite action rw_act_insert_loginfooter_v1.0 insert_after_all "HTTP.RES.BODY(1200000).SET_TEXT_MODE(IGNORECASE)" "\"<div id=NetScalerAppended style=\'text-align:center;color:white;font-size:15px;\'><div id=HelpdeskInfo>For urgent enquiries please contact the IT Service Desk on <b>01234 000000</b> <br>Email us on <a href = \'mailto: support@example.com\' style=\'color:#02a1c1\'>support@example.com</a> <br>Find further details here: <a href=\'http://example.com/\' style=\'color:#00FF00;\' target=\'_blank\' >Important Link</a></div><br><div id=Linkbar><a href=\'http://example.com/\' style=\'color:#FF0000;\' target=\'_blank\' >Red Link</a>\"+\"  |  \"+\"<a href=\'http://example.com/\' style=\'color:#FF8C00;\' target=\'_blank\' >Amber Link</a>\"+\"  |  \"+\"<a href=\'http://example.com/\' style=\'color:#228B22;\' target=\'_blank\' >Green Link</a>\"+\"  |  \"+\"<a href=\'http://example.com/\' style=\'color:#FF00FF;\' target=\'_blank\' >Purple Link</a><br></div></div>\"" -search q/text("customAuthBottom\">")/

add rewrite policy rw_pol_insert_loginfooter_v1.0 "HTTP.REQ.URL.CONTAINS(\"/index.html\")" rw_act_insert_loginfooter_v1.0

bind vpn vserver ica.lab.local -policy rw_pol_insert_loginfooter_v1.0 -priority 100 -gotoPriorityExpression END -type RESPONSE

 

rw-action.thumb.gif.3abe2f3f8a9f621824e70ef78a63e4dc.gif

 

rw-policy.thumb.gif.c4894f9d9a78b956e75fcb4a51b97af9.gif

 

 

rw-binding.thumb.gif.e305bada421ea18ce507278f70939b9d.gif

 

Regards. Paul.

Link to comment
Share on other sites

  • 6 months later...
  • 1 year later...

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...