Revision [16655]

This is an old revision of AncestorPage made by Sy1Ivb on 2007-05-31 10:30:13.

 

Tracking page modification


Last edited by Sy1Ivb
Thu, 31 May 2007 10:30 UTC [diff]

This action checks whether selected page has been modified since the last edition of the current page. If yes, it shows a small text about the situation. The main goal of this action is to track changes which happen on wikka english documentation when user is surfing doc's translations.

Version: 0.3

 


Usage


{{pwancestor page="MyPage" show="yes|no"}}

Parameters

The code


%%(php)
<?php
(!empty($vars['page'])) ? $ancestor=$vars['page']: $ancestor="HomePage";
(!empty($vars['show'])) ? $show=$vars['show']: $show="no";

This action will be displayed only if on "show" mode.

if ($this->method
"show") {

if($this->page['time'] < $ancestor_page['time'])
{
}
elseif(( $this->page['time'] > $ancestor_page['time'] )
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki