[opencms-dev] more questions on path conversion

Christian Steinert christian_steinert at web.de
Wed Mar 22 18:59:54 CET 2006


> I tried to help myself with the following:
> 
> CmsRequestContext rec=cms.getRequestContext();
> ...
> String vfsName =
>  rec.removeSiteRoot(((CmsResource)siblings.get(i)).getRootPath());
> 
> 
> It worked but maybe there is a simpler solution?
> 

You can do:

CmsRequestContext.getSitePath(CmsResource)
or
CmsRequestContext.removeSiteRoot(String)

So you could also do: 
rec.getSitePath((CmsResource)siblings.get(i))

Christian
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193




More information about the opencms-dev mailing list