How to maintain common images or resources ?

Hi all,

 How to maintain common images or resources for different portlet application projects?

thanks,
tmv

For images, css files and javascript files, you can deploy all of those into a common Portlet Application. MWS does this with the wm_cafshared.war.

Then, when you want to refer to those images etc. from other Portlets, you use a URL that points to the correct path as in the example:

You’ll note that the path to the image starts with a ‘fe:’. That stands for Front End URL. When CAF encounters other values that start with a ‘/’ it will generate a path relative to the current Portlet Application. The ‘fe:’ will generate a URL relative to the current MWS Front End URL.

Regards.
–mark