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
2c00e8b4
Commit
2c00e8b4
authored
Dec 20, 2020
by
Dainis Abols
Browse files
Swapped to person type view
parent
2e91f983
Changes
4
Hide whitespace changes
Inline
Side-by-side
Classes/Controller/PersonController.php
View file @
2c00e8b4
...
...
@@ -67,38 +67,16 @@ class PersonController extends ActionController
{
$this
->
createButtons
();
$args
=
GeneralUtility
::
_GP
(
'tx_lunames_web_lunamesnames'
);
// Initialize the dbList object:
$dbList
=
GeneralUtility
::
makeInstance
(
DatabaseRecordList
::
class
);
$dbList
->
script
=
GeneralUtility
::
getIndpEnv
(
'REQUEST_URI'
);
$dbList
->
allFields
=
1
;
$dbList
->
thumbs
=
1
;
$dbList
->
clickTitleMode
=
'edit'
;
$dbList
->
calcPerms
=
$GLOBALS
[
'BE_USER'
]
->
calcPerms
(
$this
->
pageInformation
);
$dbList
->
disableSingleTableView
=
1
;
$dbList
->
dontShowClipControlPanels
=
true
;
$pointer
=
MathUtility
::
forceIntegerInRange
(
GeneralUtility
::
_GP
(
'pointer'
),
0
);
$levelLimit
=
0
;
$itemLimit
=
20
;
$searchField
=
$args
[
'search_field'
];
$dbList
->
start
(
$this
->
storagePageId
,
'tx_lunames_domain_model_person'
,
$pointer
,
$searchField
,
$levelLimit
,
$itemLimit
);
$dbList
->
setDispFields
();
$dbList
->
noControlPanels
=
true
;
$dbList
->
setFields
=
[
'tx_lunames_domain_model_person'
=>
GeneralUtility
::
trimExplode
(
','
,
'given_name,family_name,year_of_birth,year_of_death'
,
true
),
];
$dbList
->
generateList
();
$assignedValues
=
[
'personList'
=>
$dbList
->
HTMLcode
,
'personCount'
=>
$dbList
->
counter
,
'formSubmitted'
=>
$args
[
'formSubmitted'
],
'searchTerm'
=>
$searchField
,
'requestUri'
=>
GeneralUtility
::
quoteJSvalue
(
rawurlencode
(
GeneralUtility
::
getIndpEnv
(
'REQUEST_URI'
))),
];
$uriBuilder
=
GeneralUtility
::
makeInstance
(
BackendUriBuilder
::
class
);
$this
->
view
->
assignMultiple
(
$assignedValues
);
$link
=
(
string
)
$uriBuilder
->
buildUriFromRoute
(
'web_list'
,
[
'id'
=>
$this
->
storagePageId
,
'table'
=>
'tx_lunames_domain_model_person'
]
);
HttpUtility
::
redirect
(
$link
);
}
/**
...
...
composer.json
View file @
2c00e8b4
{
"name"
:
"luitd/lu-names"
,
"version"
:
"1.0.1
0
"
,
"version"
:
"1.0.1
1
"
,
"description"
:
"Jews in Latvia names database extension for TYPO3"
,
"type"
:
"typo3-cms-extension"
,
"keywords"
:
[
...
...
ext_emconf.php
View file @
2c00e8b4
...
...
@@ -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
0
'
,
'version'
=>
'1.0.1
1
'
,
'constraints'
=>
[
'depends'
=>
[
'typo3'
=>
'9.5.0-9.9.99'
,
...
...
readme.md
View file @
2c00e8b4
...
...
@@ -4,7 +4,7 @@ Jews in Latvia names database extension for TYPO3TYPO3 Extension for Regulations
## Version
1.
0.1
0
1.
0.1
1
## 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