• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Default to Welcome Tab after Login

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Default to Welcome Tab after Login

    The Welcome Tab is a great place to put site updates and news information.

    The challenge is that the Welcome tab is no longer the tab that has focus if the user has auto loaded apps. Therefore, they actually never actually see the Welcome tab unless they click on it. Not really ideal if you want them to always see the Welcome tab.

    I resolved the situation by modifying valence-3.1\html\portal\core\portal_desktop.html

    With this change, the welcome tab is shown after the autoloaded apps are completed. IMO, this should be the default behavior of the portal or at least it should be a configurable option.

    - JP

    Code:
    window.tabPanelMain = Ext.create('Valence.vvTabPanel',{ activeTab: 0, region: 'center', cls: 'vvTabPanel', lockTimeout : this.lockTimeout, appParm : this.urlParms.app, showWelcomePage : (this.urlParms.portal !== 'false' || this.urlParms.welcome === 'true') ? true : false, welcomePage : this.welcomePage || '/vvresources/welcome/welcome.html', listeners : { apploaded : function(o){ if (o.autoStart){ portalObj.updateAutoStartProgress(); Valence.tab.showTab('welcome'); //**** NEW LINE ADDED TO DISPLAY THE WELCOME TAB } },
    Last edited by JPinTO; 01-31-2013, 05:50 PM.

  • #2
    Thanks for the suggestion, JP. The Valence 3.2 Portal is written a bit differently from 3.1, so we'll need to change the coding approach slightly, but we'll include this in a future 3.2 update.

    -Rob

    Comment


    • #3
      Hi, Any updates on this?

      Any tips on how I can get this functionality to work on Valence-3.2. portal_desktop.html no longer exists in v3.2

      - JP

      Comment


      • #4
        Unfortunately, there is no clean way to accomplish this currently. I can offer you a temporary ugly fix though. In Hook.js, tie into the "environmentset" event.

        Code:
        environmentset : function(user,env){
            Ext.Function.defer(function(){
                Valence.app.show('welcome');
            },1000);
        }
        Obviously, this is not a very good solution as the timing can be off (you may need to adjust the delay on this). In a future release, there will be two new events that Hook can listen for: "autostartbegin" and "autostartcomplete". In that case, we could just add the Valence.app.show when the "autostartcomplete" event fires.

        Comment


        • #5
          That worked. Thanks.

          Comment

          Working...
          X