openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 8cd7b1bcacc33b9b945e4554b96b96c4ae900480
parent 5240b6e6e61766d3d41f479988e344a8a8ebd8dd
Author: dankert <devnull@localhost>
Date:   Sat, 16 Apr 2005 23:34:17 +0200

Bei Seiten Ermitteln weiterer Seiten im Ordner

Diffstat:
actionClasses/MainmenuAction.class.php | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/actionClasses/MainmenuAction.class.php b/actionClasses/MainmenuAction.class.php @@ -98,6 +98,14 @@ class MainmenuAction extends Action $folder->load(); $this->setTemplateVar('folder',$folder->parentObjectNames(true,true)); + + $others = $folder->getObjects(); + $o2 = array(); + foreach( $others as $o ) + if ( $o->isPage ) + $o2[$o->objectid] = Text::maxLength($o->name,25); + + $this->setTemplateVar('otherObjects',$o2); // Ermitteln Namen der Seite $this->setTemplateVar('text',$page->name);