[opencms-dev] OpenCms API - reading cross site resource paths

Markus Rührmair markus.ruehrmair at googlemail.com
Wed Mar 3 21:45:00 CET 2010


Hello All,

I'm curious about what getCmsObject().readFile(String resourcename)
expects. Javadoc reads "full current site relative path" .
It seems that the method checks if it's a path from the current site
and if yes it accepts full site paths like
/sites/thissite/someresource and also relative paths like
/someresource.

I am thinking about manipulating the resource path taken from an xml
content from a linked resource from another site to access a resource
in the current site.
So far it seems to work, although I am curious how readFile() actually
expects the path to be.

Best Regards
Markus Rührmair



More information about the opencms-dev mailing list