Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Open
LU Names
Commits
abcb267a
Commit
abcb267a
authored
Feb 16, 2021
by
Dainis Abols
Browse files
Set source ordering by uid
parent
2c00e8b4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Classes/Controller/FrontController.php
View file @
abcb267a
...
...
@@ -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
]);
...
...
composer.json
View file @
abcb267a
{
"name"
:
"luitd/lu-names"
,
"version"
:
"1.0.1
1
"
,
"version"
:
"1.0.1
2
"
,
"description"
:
"Jews in Latvia names database extension for TYPO3"
,
"type"
:
"typo3-cms-extension"
,
"keywords"
:
[
...
...
ext_emconf.php
View file @
abcb267a
...
...
@@ -9,7 +9,7 @@ $EM_CONF[$_EXTKEY] = [
'author_email'
=>
'lauris.karklis@lu.lv, dainis.abols@lu.lv'
,
'state'
=>
'stable'
,
'clearCacheOnLoad'
=>
true
,
'version'
=>
'1.0.1
1
'
,
'version'
=>
'1.0.1
2
'
,
'constraints'
=>
[
'depends'
=>
[
'typo3'
=>
'9.5.0-9.9.99'
,
...
...
readme.md
View file @
abcb267a
...
...
@@ -4,7 +4,7 @@ Jews in Latvia names database extension for TYPO3TYPO3 Extension for Regulations
## Version
1.
0.1
1
1.
0.1
2
## Dependecies
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment