2010-10-07, 16:54:20
media-seven Wrote:"find_url($parent)" results in my root path, no matter where I am.
What do you mean? find_url() is also used by the script that generates your main menu and it should always output correct URLs. What does it do that you don’t want it to do?
media-seven Wrote:And how do I open the XML data file? Couldn't find anything in the documentation about it.
We haven’t documented every single internal function, but this would be getXML(). (As seen on line 42 of the current index.php.)
Something like this would probably handle it (untested):
Code:
function returnParentTitle($parent) {
$parentdata = getXML(GSDATAPAGESPATH.$parent.'.xml');
return $parentdata->title;
}
“Don’t forget the important ˚ (not °) on the a,†says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!