2010-10-06, 20:11:42
GetSimple never goes any deeper than 2 levels, and an expansion of this limit hasn't been planned (as of yet). So all you need to do is check whether $parent exists and is a valid non-empty string. If it doesn't exist or is empty you're at the top-level. If it exists and is a string, you're on a child page.
“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!