Change default list for My applications

KMeisch
Tera Contributor

Is there a way to change the My Applications widget to view "all" by default instead of "recent"?


For a new portal deployment we don't want users first experience to be an empty widget, but rather see the content they can explore with this feature. Unfortunately being blank is not the greatest first experience. 

3 REPLIES 3

nknapek
Tera Contributor

Also looking for the answer here

 

KMeisch
Tera Contributor

So I went through the code today for just long enough before giving up and figured it out... actually adjusted it to make 2 different orders (All, Fav, Recent, or All, Recent, Fav) . You have to clone the App Launcher widget and edit the following in Client Script:

    function init() {
        c.fetchingFavorite = false;
        c.fetchingRecent = false;
        c.tabs = [{
            id: 'all',
            name: '${All}',
            apps: c.data.apps,
            fetchNeeded: c.data.apps.length == 0,
            order: 0
        }, {
    id: 'recents',
            name: '${Recent}',
            apps: c.data.recentApps,
            fetchNeeded: false,
            order: 1
        }];
 
        if (c.data.show_favorite) {
            c.tabs = [{
                id: 'all',
                name: '${All}',
                apps: c.data.apps,
                fetchNeeded: c.data.apps.length == 0,
                order: 0   
    }, {
               id: 'favoritesTab',
                name: '${Favorites}',
                apps: c.data.favoriteApps,
                fetchNeeded: c.data.favoriteApps == 0,
                order: 1
            }, {
          id: 'recents',
                name: '${Recent}',
                apps: c.data.recentApps,
                fetchNeeded: false,
                order: 2
            }, {
            }];

 

app launcher order.PNG

KMeisch
Tera Contributor

So I went through the code today for just long enough before giving up and figured it out... actually adjusted it to make 2 different orders (All, Fav, Recent, or All, Recent, Fav) . You have to clone the App Launcher widget and edit the following in Client Script:

    function init() {
        c.fetchingFavorite = false;
        c.fetchingRecent = false;
        c.tabs = [{
            id: 'all',
            name: '${All}',
            apps: c.data.apps,
            fetchNeeded: c.data.apps.length == 0,
            order: 0
        }, {
    id: 'recents',
            name: '${Recent}',
            apps: c.data.recentApps,
            fetchNeeded: false,
            order: 1
        }];
 
        if (c.data.show_favorite) {
            c.tabs = [{
                id: 'all',
                name: '${All}',
                apps: c.data.apps,
                fetchNeeded: c.data.apps.length == 0,
                order: 0   
    }, {
               id: 'favoritesTab',
                name: '${Favorites}',
                apps: c.data.favoriteApps,
                fetchNeeded: c.data.favoriteApps == 0,
                order: 1
            }, {
          id: 'recents',
                name: '${Recent}',
                apps: c.data.recentApps,
                fetchNeeded: false,
                order: 2
            }, {
            }];

 

app launcher order.PNG