nattreid/file-manager

File Manager for Nette Framework

Installs: 580

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 2

Language:JavaScript

1.5.6 2022-05-18 09:12 UTC

README

Nastavení v config.neon

services:
    - NAttreid\Filemanager\IFileManagerFactory

Pokud používáte bower, upravte css

.fileManagerContainer .fileManagerContent .itemContainer a.item .image {
    background-image: url('/images/filemanager/fileIcons.png');
}

Použití v presenteru

/** @var \NAttreid\FileManager\IFileManagerFactory @inject */
public $fileManagerFactory;

function createComponentList(){
    $basePath = 'korenovyAdresar';
    $manager = $this->fileManagerFactory->create($basePath);
    $manager->editable(true); // povolí editaci, mazání a přejmenování souborů

    // pro zmenu jazyka
    $manager->getTranslator()->setLang('cs');

    return $manager;
}