Use of public resources
Public resources are those used to support the web page, such as images, CSS, javascripts, etc. The public resources of a theme must be included within a www folder that is a child of the folder containing the corresponding themedefinition.xml. Within this www, the folder path must match the path of the public resource that is to be replaced, relative to the root of the portal application. Examples can be seen in the section Theme Creation Example.
The portal attempts to recognize some references to public resources contained in the HTML of the page. When the portal finds a reference that matches an applied theme, the reference will be rewritten to the path of the resource within the theme.
If the developer wants the portal to ignore the search for a specific resource in the themes, they can add the prefix "lum_notheme/" to the resource path when referencing it. This way, the portal will not look for it in the applied themes.
If the reference code is not being detected automatically, the developer, if available in the artifact they are developing, can use the function EL lum_url, or the Java API IServiceInterfaceResponse.encodeURL(String)
, so that the reference can be processed.