Commit abcb267a authored by Dainis Abols's avatar Dainis Abols
Browse files

Set source ordering by uid

parent 2c00e8b4
......@@ -9,6 +9,7 @@ use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
use TYPO3\CMS\Core\Resource\FileRepository;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Extbase\Mvc\Controller\ActionController;
use TYPO3\CMS\Extbase\Persistence\QueryInterface;
/**
* Class FrontController
......@@ -66,6 +67,9 @@ class FrontController extends ActionController
$config = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('lu_names');
$storagePageId = (int)$config['storage_page_id'];
// Set ordering
$this->sourceRepository->setDefaultOrderings(['uid' => QueryInterface::ORDER_ASCENDING]);
// Set storage page id
$querySettings = $this->sourceRepository->createQuery()->getQuerySettings();
$querySettings->setStoragePageIds([$storagePageId]);
......
{
"name": "luitd/lu-names",
"version": "1.0.11",
"version": "1.0.12",
"description": "Jews in Latvia names database extension for TYPO3",
"type": "typo3-cms-extension",
"keywords": [
......
......@@ -9,7 +9,7 @@ $EM_CONF[$_EXTKEY] = [
'author_email' => 'lauris.karklis@lu.lv, dainis.abols@lu.lv',
'state' => 'stable',
'clearCacheOnLoad' => true,
'version' => '1.0.11',
'version' => '1.0.12',
'constraints' => [
'depends' => [
'typo3' => '9.5.0-9.9.99',
......
......@@ -4,7 +4,7 @@ Jews in Latvia names database extension for TYPO3TYPO3 Extension for Regulations
## Version
1.0.11
1.0.12
## Dependecies
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment