Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ethsam opened this issue Apr 15, 2022 · 1 comment

Comments

@ethsam
Copy link

ethsam commented Apr 15, 2022

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...

@artgris
Copy link
Owner

artgris commented Aug 1, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants