Revision history for OnegWRSubPages
Revision [23478]
Last edited on 2016-05-20 07:38:48 by NickAldwin [Replaces old-style internal links with new pipe-split links.]Additions:
~- [[OnegWRTree | Tree]] - Also show some hierarchical structure.
Deletions:
Additions:
~~""{{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";
~- Fixed counting bug & instructions (2011-04-11) - NickAldwin
~~""{{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";
~- Fixed counting bug & instructions (2011-04-11) - NickAldwin
Deletions:
~~""{{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";
No Differences
Additions:
~- Published on main site (2005-05-09) - OnegWR