Comparing revisions for OnegWRSubPages
- [7985] 2005-05-09 14:10:20 by OnegWR (unregistered user) [show pages that have a part of the name in common]
- [21391] 2011-04-11 02:39:06 by NickAldwin (unregistered user) [Fixed counting bug & instructions]
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
~~""{{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 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