Returns the inherited path of a file, searching up the page hierarchy

Get parameters Get examples: // Simple URL /OpenForum/Actions/GetInheritedFilePath?pageName=/MyPage&fileName=page.js // Using JSON.get JSON.get('/OpenForum/Actions/GetInheritedFilePath', null, 'pageName=/MyPage&fileName=page.js') .onSuccess(function(path) { console.log('Inherited path:', path); }).go(); Get Action

Server Side Javascript for GET method

if(typeof(pageName)=="undefined") { transaction.setResult(transaction.SHOW_PAGE); } else { fileName = transaction.getParameter("fileName"); path = file.getPageInheritedFilePath(pageName,fileName); if(path==null) { path="null"; } transaction.sendPage( path ); }