FileManagerBundle icon indicating copy to clipboard operation
FileManagerBundle copied to clipboard

Service Configuration possibility use "orderby" and "order" for generate url

Open ethsam opened this issue 3 years ago • 1 comments

Hi, in my service i add "orderby" and "order" for url generate :

public function getConf($extra = []) {
        $dateNow = new \DateTime('now', new \DateTimeZone('Indian/Reunion'));
        $year = $this->getDirectoryExist($dateNow->format('Y'));
        $month = $this->getDirectoryExist($dateNow->format('Y') . "/" . $dateNow->format('m'));
        $day = $this->getDirectoryExist($dateNow->format('Y') . "/" . $dateNow->format('m') . "/" . $dateNow->format('d'));

        $localUri = "../public/assets/images/articles/". $dateNow->format('Y') . "/" . $dateNow->format('m') . "/" . $dateNow->format('d');

        return [
            'dir' => $localUri,
            'orderby' => 'date',
            'order' => 'desc',
            'type' => 'image',
            'tree' => false,
            ];
    }

Not working...

ethsam avatar Apr 15 '22 12:04 ethsam

Hi, "orderby" and "order" are only configurable in the url:

{{ path('file_manager', {'conf':'perso', 'orderby': 'date', 'order' : 'desc'}) }}

or

/manager/?conf=perso&orderby=date&order=desc

artgris avatar Aug 01 '22 06:08 artgris