All pastes #350341 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-02-11 11:20 UTC
rendered paste body
put this somewhere at the top, but after the $pageid functions

        $pad = array();
        getPath($pageid, &$pad);
        $pad = array_reverse($pad);
        $crumb = array("Home" => "/");
        foreach($pad as $v) {
                if ($v == 0 || $v == 1) continue;
                $crumb[getVeldValue("paginaTitel", $v)] = "/page/".checkAlias($v);
        }


Then in your <body> somewhere put this:

                                You are here: 
                                <?
                                $path = "";
                                foreach ($crumb as $title=>$link) {
                                        $path .= "<a href=\"$link\" title=\"$title\">$title</a> / ";
                                }
                                $path = substr($path, 0, strlen($path)-3);
                                echo $path
                                ?>