georgringer / news_filter

Filter news
Other
4 stars 11 forks source link

Implement ordering of categories #16

Closed klodeckl closed 4 months ago

klodeckl commented 1 year ago

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 commented 6 months ago

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 commented 4 months ago

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

kitzberger commented 4 months ago

@klodeckl, feature is part of latest release 2.1.0