Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find out the navigation level?
#7
Zegnåt Wrote:
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;
}


YEAH! Thank you sooo much!
I wish I could teleport myself to Sweden and give you a pie. Smile

I'm going to release my plugin soon, so everyone can enjoy it.
Reply


Messages In This Thread
Find out the navigation level? - by media-seven - 2010-10-06, 19:10:09
Find out the navigation level? - by Zegnåt - 2010-10-06, 20:11:42
Find out the navigation level? - by media-seven - 2010-10-06, 20:33:24
Find out the navigation level? - by Zegnåt - 2010-10-07, 01:04:31
Find out the navigation level? - by media-seven - 2010-10-07, 16:21:03
Find out the navigation level? - by Zegnåt - 2010-10-07, 16:54:20
Find out the navigation level? - by media-seven - 2010-10-07, 17:10:00
Find out the navigation level? - by Zegnåt - 2010-10-07, 18:32:45



Users browsing this thread: 1 Guest(s)