4 << PrevPage | ParentPageWithLinkList | NextPage >>
6 Using a pages meta box you can define it to be part of page
7 section/group ordered by a link list on another page. Use a
8 meta field of "top:" or "parent:" or "group:" to make the
9 current page belong to the cluster of pages in a trail. Then
10 the for and back links will be shown at the bottom.
14 $ewiki_plugins["view_append"][] = "ewiki_aview_pagetrail";
16 function ewiki_aview_pagetrail($id, &$data, $action) {
18 if ($m = $data["meta"]["meta"]) {
20 #-- check for parent page
22 or ($top = $m["parent"])
23 or ($top = $m["group"]);
26 $t = ewiki_db::GET($top);
27 $t = explode("\n", trim($t["refs"]));
29 $n = array_search(ewiki_array($top), strtolower($t));
33 $o = "<div class=\"page-trail\"><< "
34 . ($prev ? ewiki_link($prev) : "")
35 . " | " . ewiki_link($top) . " | "
36 . ($prev ? ewiki_link($prev) : "") . " >%gt;</div>\n";