IBM Digital Experience wiki
ANNOUNCEMENT: WIKI CHANGE TO READ-ONLY. LEARN MORE...
IBM Accelerators for WebSphere Portal
IBM Mobile Portal Accelerator
> Referencing asset polices using Alternate approach instead if “mobilePortletContent” Tag
About the Original Author
Articles authored: 3
Articles edited: 0
Recent articles by this author
Referencing asset polices using an alternate approach instead if “mobilePortletContent” Tag
Instead of using mobilePortletContent you can reference imagesscripts(asset policies) using alternate approaches.
Migrating Mobile Portal Accelerator 6.x/7.x to 8.0 Using an alternative approach
Introduction: This article proposes an alternative way of migrating from lower versions of MPA to MPA8.0. The normal process is outlined in the article 1 mentioned under reference section. The process outlined in the article 1 requires a portal migration. If you have the portal installation ...
Migration From MPA 7.0.x to MPA 8.0
This article provides steps for migrating MPA from 7.0.x to 8.0 . And also mentions portal migration with a typical scenario.
Referencing asset polices using Alternate approach instead if “mobilePortletContent” Tag
| Edited by
January 6, 2014
Instead of using mobilePortletContent you can reference images/scripts(asset policies) using alternate approaches.
mobilePortletContent assets policy dynamic static
In MPA 8.0
use of tag
to reference the images outside the portlet is deprecated. Instead of using this tag follow the following steps to reference image/assets. There are two approaches to reference the assets.
A) Reference image through a static project .
Create a new definition of the project in mcs-config.xml file. The file is present at two locations
. You should add the details like below in both copies of
Please note the attributes identity (project), directory (xml-policies), base-url(assets) and prefix-url(In child element of assets) in the above example.
Put all the policy files like .
etc in directory
" used in project definition .In the following example all polices are placed in below directory.
Place different policy files in different sub folders. See the snap below.
Put all the assets in the directory which is accessible via
tag. Eg: image "
” should become available if you hit this url
For this purpose you can create a directory inside
folder and put assets under that directory.
See in this example the assets are placed in below directory.
Similarly you can create script policy. While creating image/script policy just use simple file name in place of url (if you have followed the exact url pattern described above)
Restart the server.
Follow the following syntax to add image/script policy in custom jsp's.
policy can be used in any portlet .
Compare selected versions
Summary of changes
Jan 8, 2014, 4:34:17 AM
Jan 8, 2014, 1:04:21 AM
Jan 7, 2014, 5:13:48 AM
Jan 7, 2014, 5:02:34 AM
Jan 7, 2014, 3:06:50 AM
This version (3)
Jan 6, 2014, 4:14:13 AM
Jan 7, 2014, 1:45:27 AM
Jan 6, 2014, 2:26:42 AM
Jan 5, 2014, 11:03:05 PM
Copy and paste this wiki markup to link to this article from another article in this wiki.
IBM Collaboration Solutions wikis
IBM Software support
IBMSocialBizUX on Twitter
IBMSocialBizUX on Facebook
Lotus product forums
IBM Social Business UX blog
The Social Lounge
Forgot user name/password
About the wiki