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.




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:





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









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