Beispiel #1
0
 function onAdd()
 {
     if (($id = param('alias')) && ($title = param('title')) && ($tpl = $this->evaluate('string(template/@id)')) && ($sec = apSectionAdd::addSection($id, $title, ap::getClientSection($this->getSection()->getId())))) {
         apSectionTemplate::applyTemplate($id, $tpl);
         param('row', $sec->getId());
         return true;
     }
 }