Comparing revisions for OnegWRSubPages
- [7989] 2005-05-09 14:12:31 by OnegWR (unregistered user) [typo]
- [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";
~~""{{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";
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";
~- Fixed counting bug & instructions (2011-04-11) - NickAldwin