Index: typo3/alt_file_navframe.php
===================================================================
--- typo3/alt_file_navframe.php (revision 3849)
+++ typo3/alt_file_navframe.php (working copy)
@@ -123,6 +123,7 @@
// Create template object:
$this->doc = t3lib_div::makeInstance('template');
$this->doc->backPath = $BACK_PATH;
+ $this->doc->setModuleTemplate('templates/alt_file_navframe.html');
$this->doc->docType = 'xhtml_trans';
// Adding javascript code for AJAX (prototype), drag&drop and the filetree as well as the click menu code
@@ -165,30 +166,33 @@
// Produce browse-tree:
$tree = $this->foldertree->getBrowsableTree();
- // Start page
- $this->content = $this->doc->startPage('TYPO3 Folder Tree');
-
// Outputting page tree:
$this->content.= $tree;
- // Outputting refresh-link
- $this->content.= '
-
- '.
- ''.
- $LANG->sL('LLL:EXT:lang/locallang_core.php:labels.refresh',1).'
-
-
';
+
- // CSH icon:
- $this->content.= t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'filetree', $GLOBALS['BACK_PATH']);
-
// Adding javascript for drag & drop activation and highlighting
$this->content .=$this->doc->wrapScriptTags('
'.($this->doHighlight ? 'Tree.highlightActiveItem("", top.fsMod.navFrameHighlightedID["file"]);' : '').'
'.(!$this->doc->isCMlayers() ? 'Tree.activateDragDrop = false;' : 'Tree.registerDragDropHandlers();')
);
+
+ // Setting up the buttons and markers for docheader
+ $docHeaderButtons = $this->getButtons();
+ $markers = array(
+ 'IMG_RESET' => '',
+ 'CONTENT' => $this->content
+ );
+ $subparts = array();
+ // possible filter/search like in page tree
+ $subparts['###SECOND_ROW###'] = '';
+
+ // Build the for the module
+ $this->content = $this->doc->startPage('TYPO3 Folder Tree');
+ $this->content.= $this->doc->moduleBody($this->pageinfo, $docHeaderButtons, $markers, $subparts);
+ $this->content.= $this->doc->endPage();
+
}
@@ -203,7 +207,30 @@
echo $this->content;
}
+
+ /**
+ * Create the panel of buttons for submitting the form or otherwise perform operations.
+ *
+ * @return array all available buttons as an assoc. array
+ */
+ protected function getButtons() {
+ global $LANG;
+ $buttons = array(
+ 'csh' => '',
+ 'refresh' => '',
+ );
+
+ // Refresh
+ $buttons['refresh'] = ''.
+ '';
+
+ // CSH
+ $buttons['csh'] = str_replace('typo3-csh-inline','typo3-csh-inline show-right',t3lib_BEfunc::cshItem('xMOD_csh_corebe', 'filetree', $GLOBALS['BACK_PATH']));
+
+ return $buttons;
+ }
+
/**********************************
*
* AJAX Calls
Index: typo3/stylesheet.css
===================================================================
--- typo3/stylesheet.css (revision 3849)
+++ typo3/stylesheet.css (working copy)
@@ -816,7 +816,8 @@
- - - - - - - - - - - - - - - - - - - - - */
-body#typo3-pagetree {
+body#typo3-pagetree,
+body#typo3-alt-file-navframe-php {
margin: 0;
padding: 0;
}
Index: typo3/templates/alt_file_navframe.html
===================================================================
--- typo3/templates/alt_file_navframe.html (revision 0)
+++ typo3/templates/alt_file_navframe.html (revision 0)
@@ -0,0 +1,41 @@
+
+
+
+
+
+
+
+ ###BUTTONS###
+
+
+
+
+
+
+
+###REFRESH######CSH###
+