Jump to content

clean urls not working


benbyf
 Share

Recommended Posts

must be a config problem as i've changed the urls to the original:

$nav = $pages->get('/')->children();
          foreach($nav as $child){
}

which works on the homepage, but on a level up the urls go crazy again

Link to comment
Share on other sites

on this page http://www.owengildersleeve.com/new/ the Portfolio and About links work (as the other two link externally). where as on the About page the links go crazy.

$nav = $pages->get('/')->children();
          foreach($nav as $child){
            if($child->title=='Portfolio'){
              echo '<div><a href="'. $pages->get('/')->url .'">'. $child->title .'</a></div>';
            }else{
              echo '<div><a href="'. $child->url .'">'. $child->title .'</a></div>';
            }
          }
Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...