Commit 188cffbaae2dcec3b1e5f52cd622b8701c70741b
1 parent
0785eb29
Add breadcrumb nav.
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3857 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
10 additions
and
7 deletions
presentation/lookAndFeel/knowledgeTree/administration/doctypemanagement/documentTypes.php
| ... | ... | @@ -12,6 +12,13 @@ $sectionName = "Administration"; |
| 12 | 12 | require_once(KT_DIR . "/presentation/webpageTemplate.inc"); |
| 13 | 13 | |
| 14 | 14 | class KTDocumentTypeDispatcher extends KTAdminDispatcher { |
| 15 | + | |
| 16 | + // Breadcrumbs base - added to in methods | |
| 17 | + var $aBreadcrumbs = array( | |
| 18 | + array('action' => 'administration', 'name' => 'Administration'), | |
| 19 | + array('action' => 'doctype', 'name' => 'Document Type Management'), | |
| 20 | + ); | |
| 21 | + | |
| 15 | 22 | function do_main () { |
| 16 | 23 | $oTemplating =& KTTemplating::getSingleton(); |
| 17 | 24 | $oTemplate = $oTemplating->loadTemplate('ktcore/documenttypes/list'); |
| ... | ... | @@ -57,6 +64,9 @@ class KTDocumentTypeDispatcher extends KTAdminDispatcher { |
| 57 | 64 | $aCurrentFieldsets =& KTFieldset::getForDocumentType($oDocumentType); |
| 58 | 65 | $aAvailableFieldsets =& KTFieldset::getNonGenericFieldsets(); |
| 59 | 66 | $aAvailableFieldsets = array_diff($aAvailableFieldsets, $aCurrentFieldsets); |
| 67 | + $this->aBreadcrumbs[] = array( | |
| 68 | + 'name' => 'Document Type ' . $oDocumentType->getName(), | |
| 69 | + ); | |
| 60 | 70 | $oTemplate->setData(array( |
| 61 | 71 | 'oDocumentType' => $oDocumentType, |
| 62 | 72 | 'aCurrentFieldsets' => $aCurrentFieldsets, |
| ... | ... | @@ -100,13 +110,6 @@ class KTDocumentTypeDispatcher extends KTAdminDispatcher { |
| 100 | 110 | $this->errorRedirectTo('edit', 'Changes saved', 'fDocumentTypeId=' . $oDocumentType->getId()); |
| 101 | 111 | exit(0); |
| 102 | 112 | } |
| 103 | - | |
| 104 | - function handleOutput($data) { | |
| 105 | - global $main; | |
| 106 | - $main->bFormDisabled = true; | |
| 107 | - $main->setCentralPayload($data); | |
| 108 | - $main->render(); | |
| 109 | - } | |
| 110 | 113 | } |
| 111 | 114 | |
| 112 | 115 | $d =& new KTDocumentTypeDispatcher; | ... | ... |