Jump to content
Welcome to our new Citrix community!

Storefront 3.12 Loading custom header + Footer from URL concurrently?


Felix Onyango

Recommended Posts

My question: Can some help with modifying the code below so that I am able to load both header and footer from a text file stored on the server?  Based on the post below, it appears that I need to use the API to load the text in order for the custom header\Footer to show up in both receiver and web instances of storefront.

Is it possible to call CTXS.ExtensionAPI.proxyRequest() and load two different URLs? Maybe call it twice? 

 

customweb/footer.txt -> Stores footer message

customweb/header.txt -> Stores header message

 

https://discussions.citrix.com/topic/370082-footer-customization-does-not-show-up-in-windows-citrix-receiver/

 

/**Code that I am currently using to load custom footer message

This works fine. How can I call the same code to load the header ? **/

/*----------------------------------------------------------------------------*/

function setDynamicContent(txtFile, element) {
   CTXS.ExtensionAPI.proxyRequest({
      url: "customweb/"+txtFile,
      success: function(txt) {$(element).html(txt);}});
}

var fetchedContent=false;
function doFetchContent(callback)
{
  if(!fetchedContent) {
    fetchedContent = true;
    setDynamicContent("footer.txt", "#customBottom");
  }
  callback();
}

CTXS.Extensions.beforeDisplayHomeScreen = doFetchContent;

visible_header_and _footer.PNG

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