Jump to content
Welcome to our new Citrix community!

1912 customizations


Paul Balan

Recommended Posts

Is there a way to change the behavior of the categories tab to act like was in 3.x? Basically want to default to the categories tab, default to uncategorized apps.

Is it also possible to change the folder subfoder behavior to match 3.x within the categories?

 

It looks like https://www.citrix.com/blogs/2019/09/03/how-to-land-on-the-categories-view-in-storefront-1811/  will kind of solve #1 but it shows all apps, is there a way to make it Uncategorized?

Link to comment
Share on other sites

  • 2 weeks later...

In the <store>Web directory...

 

Put this into script.js to make Uncategorized the default:

CTXS.Extensions.afterDisplayHomeScreen = function (callback) {
  CTXS.ExtensionAPI.changeView("store");
  callback();
};


CTXS.Extensions.onViewChange = function (viewName) {
  if (viewName == 'store') {
    // show the uncategorized view by default
    // Wait 1 second to make sure view is loaded
    var btns = document.getElementsByClassName('appFiltersItem-Text');
    // Uncategorized is the last button
    var offset = btns.length - 1; 
    window.setTimeout(function () {btns[offset].click();}, 1000); 
  }
};

Put this into style.css to resize the icons:

.storeapp-details-link {
    height:94px !important;
}
.storeapp-icon {
    height:45px !important;
    width:45px !important;
}
.storeapp-list .storeapp, .storeapp-list .folder {
    height: 150px !important;
    width: 150px !important;
}
.storeapp-name {
    font-size: 12px;
}


 

  • Like 1
Link to comment
Share on other sites

On 4/24/2020 at 4:36 PM, Sam Jacobs said:

In the <store>Web directory...

 

Put this into script.js to make Uncategorized the default:


CTXS.Extensions.afterDisplayHomeScreen = function (callback) {
  CTXS.ExtensionAPI.changeView("store");
  callback();
};


CTXS.Extensions.onViewChange = function (viewName) {
  if (viewName == 'store') {
    // show the uncategorized view by default
    // Wait 1 second to make sure view is loaded
    var btns = document.getElementsByClassName('appFiltersItem-Text');
    // Uncategorized is the last button
    var offset = btns.length - 1; 
    window.setTimeout(function () {btns[offset].click();}, 1000); 
  }
};

Put this into style.css to resize the icons:


.storeapp-details-link {
    height:94px !important;
}
.storeapp-icon {
    height:45px !important;
    width:45px !important;
}
.storeapp-list .storeapp, .storeapp-list .folder {
    height: 150px !important;
    width: 150px !important;
}
.storeapp-name {
    font-size: 12px;
}

Thank you for this!  Another question.  We want to have a login banner for our agvip users.  In this banner we want to have a link to an internal website.  Is it possible to link to an internal webpage?  Can we reverse proxy a webpage so it is available from the login banner?  Might make another thread for this.
 

 

Link to comment
Share on other sites

22 hours ago, Sam Jacobs said:

Is this working the way you want it to?

Is there a way to get a link in the disclaimer box to open in a popup window?

 

messageTitle: "Warning!",
        messageText: "Bla Blah ensure that you have read and comply with the <a href = ‘https://www.google.com’> following guidelines</a>",
        okButtonText: "Accept",

 

That opens up google in the page when you click it, taking us out of SF.  How do we add something like this for a popup?

 

This looks like code that should work, but it doesn't even display the disclaimer box:

<a href="https://google.com" target="popup" onclick="window.open('https://google.com','popup','width=600,height=600'); return false;"> Open Link in Popup </a>

Link to comment
Share on other sites

  • 3 months later...
  • 2 months 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...