Hi, the code is right and i use it also very often. In your case it seems that $this->doc->backPath isn't filled, make a debug Try to use $GLOBALS['BACK_PATH'] instead vg Steffen