Hi there,
Simple question needs simple answer… I'm still a newby and trying to get my head round pw.
I'm trying to access (and eventually get the path) to a particular page somewhere else in the tree, without knowing the complete path, only knowing the name of the page.
I'm getting the name of the page with urlSegment. Code looks like this so far:
$myPage=$input->urlSegment1;
$pathToPage=$pages->find($myPage)->path;
Played around with it, browsed the forum and failed embarassingly.
Any suggestions?
Thanks.