Hide featured apps from ‘All Apps’

This example modifies the ‘All Apps’ view to only show apps that are not in a featured category.

First remember every app in a bundle, and then remove them from the ‘all apps display’ list:

var bundleApps = [];
CTXS.Extensions.sortBundleAppList = function(apps,bundle, defaultfn) {
    for (var i = 0; i < apps.length; i++) {
        bundleApps.push(apps[i]);
    }
    defaultfn();
};

CTXS.Extensions.filterAllAppsDisplay = function(allapps) {
    for (var i = 0; i < allapps.length; i++) {
        if ($.inArray(allapps[i], bundleApps) != -1) {
            allapps.splice(i, 1);
            i--;
        }
    }
};
<!--NeedCopy-->

Before adding the customization code:

Screenshot of Featured Apps before change

Screenshot of All apps before change

After adding the customization code, here is what it looks like:

Screenshot of All apps before change

If you use this customization, then consider changing the text string “All Apps” to say “Other Apps” to avoid your users getting confused. To do this edit the strings.en.js file in the custom directory, and add a tag for the AllAppsTitle. For example:

(function ($) {
    $.localization.customStringBundle("en", {
        AllApps: "Other Apps",
        Example1: "This is an example",
        Example2: "This is another example"
    });
})(jQuery);
<!--NeedCopy-->

Before update strings:

Icon bar before string change

After update strings:

Icon bar icon after string change

Hide featured apps from ‘All Apps’

In this article