Extension talk:DirectoryManager

After installing how does one use this? Svanslyck 22:25, 27 October 2007 (UTC)
 * I have added some notes on the extension page. Hope this helps.Jean-Lou Dupont 00:29, 28 October 2007 (UTC)

useful extension... just have to say, the file contents are not displayed, not in edit and not in view mode. Any ideas? groovehunter 20:13, 20 February 2008 (UTC)
 * You need Extension:FileManager for that. Jean-Lou Dupont 20:22, 20 February 2008 (UTC)


 * I got that installed. (and DirectoryManager without modifications). What files are exepcted to be viewable? html in first place atleast? Florian


 * later.. ok got it, I overlooked the required permissions, readfile and commitfile. Now on view action the msg "file exists" is shown, i can edit the source in editor and on save it's displayed. NOW we need an extension that renders the files appropriate to file extension.... you know probably if this development is already on the way, Jean-Lou?! groovehunter 10:07, 21 February 2008 (UTC)

and another question, how to make other dirs (not in install dir) available? gh
 * I do not support this use case at the moment. Jean-Lou Dupont 20:22, 20 February 2008 (UTC)


 * thx for quick answer :) Jean-Lou,

I did it (without any security concerns!), here the diff  for anybody who like to try.

1a2,4 > > define ('BASEDIR', '/YOUR/BASEDIR/'); > 35c38 <              self::$dirBase = $IP; --- >              self::$dirBase = BASEDIR; 79c82 <              $dirName   = $IP.'/'.$titleText; --- >              $dirName   = BASEDIR.'/'.$titleText; 84c87 <                      $this->dir = $IP.'/'.strtolower( substr( $titleText,0,1 )).substr( $titleText, 1 ); --- >                      $this->dir = BASEDIR.'/'.strtolower( substr( $titleText,0,1 )).substr( $titleText, 1 );

groovehunter 09:23, 21 February 2008 (UTC)