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

Implement ordering of categories #16

Closed
klodeckl opened this issue Apr 26, 2023 · 3 comments
Closed

Implement ordering of categories #16

klodeckl opened this issue Apr 26, 2023 · 3 comments

Comments

@klodeckl
Copy link

Helllo,

I found the code for the ordering in the category Repository, but it seems ordering does not get into the repository. I hardcoded this to get my ordering:

    $query->setOrderings(
        [
            'sorting' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING,
            'title' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING
        ]
    );

Perfect solution would be to set ordering in the flexform. I will upload a PR when time allows it.

@cepheiVV
Copy link

The flexform field settings.filterCategories currently loads TYPO3 pages where the categories are stored.
However, it would make more sense to load sys_catgory records in this settings field instead of pages records.
With this change, we could also allow for category sortings.

@kitzberger
Copy link
Collaborator

@cepheiVV, i'm not entirely sure, but this might be resolved by one of these PRs?

@kitzberger
Copy link
Collaborator

@klodeckl, feature is part of latest release 2.1.0

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

3 participants