Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fancy URL: http://domain/cat1/cat2/page
#4
Not using the most recent version but also using I18N Navigation - probably part of my issue. To update, I would have to go through another Certification and Accreditation to use to be able to use on my network with Information Assurance approval.

That would work from just looking at your code - should be a recursive function to support all levels - some pseduo code - might need globals without looking at getSimpleCode:
Code:
function getParents($slug) {
   $data = self::getPageData($slug);
   if ($data->parent != "") {
      $array[] = getParents($slug);  //Capture the parent via recursion
   }
   return (isset($array) ? $array : false);
}
Reply


Messages In This Thread
Fancy URL: http://domain/cat1/cat2/page - by Kida - 2013-04-27, 23:52:38
RE: Fancy URL: http://domain/cat1/cat2/page - by bandrzej - 2013-05-05, 22:36:27



Users browsing this thread: 2 Guest(s)