5 Sep
2000
5 Sep
'00
9:30 a.m.
Itamar Shtull-Trauring wrote:
All the objects in /websites/example are being catalogged with paths such as /websites/example/folder/myObject.
Using getPhysicalPath I hope and pray...
However, when I gets the objects path using getpath(), it's not adjusted based on the virtual hosting settings - it's still /websites/example/folder/myObject, not /folder/myObject as it should be.
That's as expected. I guess there needs to be some discussion about what 'should' happen here. I reckon there should be a getVirtualPath as well as a getPath. Comments welcome... For now, the workaround getobject().absolute_url() should work, but does mean loading the whole object into memory :-( cheers, Chris