Comparing revisions for OnegWRSubPages

Additions:
~~""{{subpage}}"" or
~~""{{subpage page="HomePage"}}""
~- Save the code below as ##action/subpages.php##
~- Give it the same file permissions as the other php files in that directory.
if ($sp_tag == $sp_page['tag']) continue;
//$sp_links[]=$this->Link($sp_page['tag']); // Show full name
$sp_links[]=$this->Link($sp_page['tag'],'',substr($sp_page['tag'],$sp_len));
if( count( $sp_links > 0 ) ){
print "\t\t<ul class=\"subpages\">\n\t<li>";
print implode("</li>\n\t<li>", $sp_links);
print "</li>\n</ul>\n\n";
~- Published on main site (2005-05-06) - OnegWR
Deletions:
~~""{{subpages}}"" or
~~""{{subpages page="HomePage"}}""
~- Save the code below as ##actions/subpages/subpages.php##
~- Give it the same file permissions as the php files in the actions directory.
// modified by NickAldwin, April 2010
if ($sp_tag == $sp_page['tag']) continue;
//$sp_links[]=$this->Link($sp_page['tag']); // Show full name
$sp_links[]=$this->Link($sp_page['tag'],'',substr($sp_page['tag'],$sp_len));
if( count( $sp_links ) > 0 ){
print "\t\t<ul class=\"subpages\">\n\t<li>";
print implode("</li>\n\t<li>", $sp_links);
print "</li>\n</ul>\n\n";
~- Published on main site (2005-05-09) - OnegWR
~- Fixed counting bug & instructions (2011-04-11) - NickAldwin
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki