own paths on export

I would like to specify my own paths when exporting, because I want to use the code in a cms.