Commit ef3fe256ebccd1ff158c6ad77c5ac2420e2d8f70

Authored by Brad Shuttleworth
1 parent f99f2508

make documents split their portlets.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5815 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/actions/documentaction.inc.php
... ... @@ -128,6 +128,7 @@ class KTDocumentAction extends KTStandardDispatcher {
128 128 $aInfo = array(
129 129 'description' => $this->sDescription,
130 130 'name' => $this->getDisplayName(),
  131 + 'ns' => $this->sName,
131 132 'url' => $url,
132 133 );
133 134 return $this->customiseInfo($aInfo);
... ... @@ -163,12 +164,17 @@ class KTDocumentAction extends KTStandardDispatcher {
163 164 $this->aBreadcrumbs = kt_array_merge($this->aBreadcrumbs,
164 165 KTBrowseUtil::breadcrumbsForDocument($this->oDocument, $aOptions));
165 166  
166   - $actions = KTDocumentActionUtil::getDocumentActionsForDocument($this->oDocument, $this->oUser);
167   - $oPortlet = new KTActionPortlet(_kt("Document Actions"));
168   - $oPortlet->setActions($actions, $this->sName);
169   - $this->oPage->addPortlet($oPortlet);
  167 + $actions = KTDocumentActionUtil::getDocumentActionsForDocument($this->oDocument, $this->oUser, 'documentinfo');
  168 + $oPortlet = new KTActionPortlet(sprintf(_kt('Info about "%s"'), $this->oDocument->getName()));
  169 + $oPortlet->setActions($actions, $this->sName);
  170 + $this->oPage->addPortlet($oPortlet);
  171 +
  172 + $actions = KTDocumentActionUtil::getDocumentActionsForDocument($this->oDocument, $this->oUser);
  173 + $oPortlet = new KTActionPortlet(sprintf(_kt('Actions on "%s"'), $this->oDocument->getName()));
  174 + $oPortlet->setActions($actions, $this->sName);
  175 + $this->oPage->addPortlet($oPortlet);
170 176  
171   - $this->oPage->setSecondaryTitle($this->oDocument->getName());
  177 + $this->oPage->setSecondaryTitle($this->oDocument->getName());
172 178  
173 179 return true;
174 180 }
... ...