Index: typo3/stylesheet.css
===================================================================
--- typo3/stylesheet.css (revision 3859)
+++ 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;
}
@@ -915,7 +916,8 @@
visibility: hidden;
}
-#typo3-pagetree #typo3-docheader img {
+#typo3-pagetree #typo3-docheader img,
+#typo3-alt-file-navframe-php #typo3-docheader img {
margin: 2px 1px;
}
@@ -1268,7 +1270,8 @@
min-width: 260px;
}
-#typo3-pagetree #typo3-docheader {
+#typo3-pagetree #typo3-docheader,
+#typo3-alt-file-navframe-php #typo3-docheader {
min-width: 0px;
}
Index: typo3/alt_file_navframe.php
===================================================================
--- typo3/alt_file_navframe.php (revision 3859)
+++ 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,45 +166,64 @@
// 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();
+ $this->content = $this->doc->insertStylesAndJS($this->content);
}
-
/**
* Outputting the accumulated content to screen
*
* @return void
*/
function printContent() {
- $this->content.= $this->doc->endPage();
- $this->content = $this->doc->insertStylesAndJS($this->content);
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() {
+ $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/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###
+