Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

By default, uPortal 4.1 uses the Respondr theme and has the mUniversality mobile view disabled.  Even if you switch to use the Universality theme, mUniversality mobile view is disabled.  If you want to re-enable it for either theme, then do the following:

Step 1: Edit userContext.xml

...

Code Block
....
    <bean id="profileMapper" class="org.jasig.portal.layout.ChainingProfileMapperImpl">
        <property name="defaultProfileName" value="default" />
        <property name="subMappers">
            <util:list>
                <ref bean="sessionAttributeProfileMapper" />
                <!--
                 | uPortal 4.1 promotes a responsive design theme Respondr.  The older uPortal 3.x, 4.0x
                 | mUniversality view is by default disabled.  To re-enable it so those user agent strings that
                 | match the regex instruction get the mUniversality view, uncomment the following bean.
                 +-->
                <ref bean="userAgentProfileMapper" />
.....
    </bean>

Step 2: Rebuild/Redeploy uPortal

Code Block
ant clean deploy-war

Step 3: Restart tomcat

Restart your tomcat server to see the changes.

Step 4: Test your changes using the User Agent

You can make sure that your full site is being rendered by verifying the mobile view isn't being displaying by doing the following: 

Changing the User Agent

Changing the User Agent in Safari

  1. Click on the sprocket icon to open the Settings menu, then choose Preferences. 
  2. On the Advanced tab, tick the "Show Develop menu in menu bar" checkbox. 
  3. Then close the Preferences window.
  4. Next, click on the page icon to open the Current Page menu and choose Develop > User Agent. 
  5. Select a User Agent from the list.

Since the theme setting is saved in your session, you need to clear your cookies after you change the User Agent string:

  1. In Safari, go to Settings > Preferences > Privacy. 
  2. Under "Cookies and other website data" click on the "Details" button. 
  3. Search for your uPortal domain, select it from the list, and click the "Remove" button. 
  4. Then refresh the page.

Changing the User Agent in Chrome

  1. Click on the wrench icon to open the Settings menu, and choose Tools > Developer Tools. 
  2. Click on the sprocket icon at the bottom right of the Developer Tools window.
  3. Under "Network", tick the "Override User Agent" checkbox and then choose a User Agent string.

The uPortal theme is saved in your session, so you need to delete the session cookie:

  1. In the Developer Tools window, under the "Resources" tab, select your domain under "Cookies" on the left panel. 
  2. Then right click the JSESSIONID cookie and choose "Delete". 
  3. The refresh the page.

Changing the User Agent in FireFox

Changing the User Agent string in FireFox is tedious, so it is best to use an Add On. There are several available from the Get Add-ons tool in FireFox. (User Agent Switcher by Chris Pederick is a good one.)

After you change the User Agent, you need to clear your cookies because uPortal saves the theme selection in your session:

  1. From the navigation menu (you might have to press Alt to see it) choose Tools > Options. 
  2. Under the Privacy tab, click the "remove individual cookies" link. 
  3. Search for your domain name and remove the "JSESSIONID" cookie.

Changing the User Agent in Internet Explorer

  1. From the navigation menu (You might have to press Alt to see it) choose Tools > F12 Developer Tools. This will open the Developer Tools window. 
  2. From the Developer Tools window, choose Tools > change User Agent string, then choose the User Agent. 
  3. If a User Agent isn't listed, choose "Custom" to add one. (Refer to the list of Common Mobile User Agent Strings in the list below)
  4. Click the "Add" button, then choose the User Agent and click the "Set" button. 
  5. Restart the Browser to reset the User Agent string to default.
You need to clear your session cookies after you change the User Agent string:
  1. In the Developer Tools, choose Cache > clear session cookies to clear your session.

 

 

 follow the steps on this page.

Include Page
Enabling mUniversality Mobile View
Enabling mUniversality Mobile View

Info
iconfalse

Additional References

Warning
iconfalse
titleHaving problems with these instructions?

Please send us feedback at uportal-user@lists.ja-sig.org