=====Tracking page modification===== {{lastedit}} <> Version: **0.3**>> ::c:: ===Usage=== ""{{pwancestor page="MyPage" show="yes|no"}}"" ==Parameters== - page: page to track. - show: displays a notice even if tracked page wasn't modified after current page. ===The code=== %%(php) method == "show") { $ancestor_page = $this->LoadSingle("SELECT time FROM ".$this->config["table_prefix"]."pages WHERE tag='".$ancestor."' AND latest = 'Y' ORDER BY time desc LIMIT 1"); if($this->page['time'] < $ancestor_page['time']) { $output = "
Ancestor: ".$this->Format("[[".$ancestor."]]")." has been modified since the last edition of this page!
"; } elseif(( $this->page['time'] > $ancestor_page['time'] ) && ( $show == "yes" )) { $output = "
Original page not modified.
Ancestor: ".$this->Format("[[".$ancestor."]]")."
"; } print $output; } ?> %% ===Todo=== - Default value if no page is passed in parameter. If current page is WikkaDocumentationFR, it will link to WikkaDocumentation. ---- CategoryUserContributions