Skip to content

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

Open

Description

@ethsam

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

Activity

  1. artgris commented on Aug 1, 2022

    @artgris
    Owner

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions