Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_news
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_news
Commits
1dccc223
Commit
1dccc223
authored
5 years ago
by
Fabian Galinski
Browse files
Options
Downloads
Patches
Plain Diff
[FEATURE] Adds mulitlanguage to the author, because of the description
parent
e056c3f0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Configuration/TCA/tx_sgnews_domain_model_author.php
+49
-1
49 additions, 1 deletion
Configuration/TCA/tx_sgnews_domain_model_author.php
ext_tables.sql
+6
-1
6 additions, 1 deletion
ext_tables.sql
with
55 additions
and
2 deletions
Configuration/TCA/tx_sgnews_domain_model_author.php
+
49
−
1
View file @
1dccc223
...
...
@@ -40,10 +40,14 @@ return [
'disabled'
=>
'hidden'
,
],
'default_sortby'
=>
'crdate DESC'
,
'languageField'
=>
'sys_language_uid'
,
'transOrigPointerField'
=>
'l10n_parent'
,
'transOrigDiffSourceField'
=>
'l10n_diffsource'
,
'iconfile'
=>
'EXT:sg_news/Resources/Public/Icons/module-sgnews.svg'
],
'interface'
=>
[
'showRecordFieldList'
=>
'hidden, crdate, name, email, description, website, image, path_segment'
,
'showRecordFieldList'
=>
'sys_language_uid, l10n_parent, l10n_diffsource, hidden, crdate, name, email,
description, website, image, path_segment'
,
],
'types'
=>
[
'1'
=>
[
...
...
@@ -76,13 +80,53 @@ return [
],
'hidden'
=>
[
'exclude'
=>
TRUE
,
'l10n_mode'
=>
'exclude'
,
'label'
=>
'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:hidden.I.0'
,
'config'
=>
[
'type'
=>
'check'
,
],
],
'sys_language_uid'
=>
[
'exclude'
=>
TRUE
,
'label'
=>
'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.language'
,
'config'
=>
[
'type'
=>
'select'
,
'renderType'
=>
'selectSingle'
,
'special'
=>
'languages'
,
'default'
=>
0
,
'items'
=>
[
[
'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages'
,
-
1
,
'flags-multiple'
]
]
]
],
'l10n_parent'
=>
[
'displayCond'
=>
'FIELD:sys_language_uid:>:0'
,
'exclude'
=>
TRUE
,
'label'
=>
'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent'
,
'config'
=>
[
'type'
=>
'select'
,
'renderType'
=>
'selectSingle'
,
'items'
=>
[
[
''
,
0
]
],
'foreign_table'
=>
'tx_sgnews_domain_model_author'
,
'foreign_table_where'
=>
'AND tx_sgnews_domain_model_author.uid=###REC_FIELD_l10n_parent### AND tx_sgnews_domain_model_author.sys_language_uid IN (-1,0)'
,
'default'
=>
0
]
],
'l10n_diffsource'
=>
[
'config'
=>
[
'type'
=>
'passthrough'
,
'default'
=>
''
]
],
'website'
=>
[
'exclude'
=>
FALSE
,
'l10n_mode'
=>
'exclude'
,
'label'
=>
'LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:tx_sgnews_domain_model_author.website'
,
'config'
=>
[
'type'
=>
'input'
,
...
...
@@ -92,6 +136,7 @@ return [
],
'name'
=>
[
'exclude'
=>
FALSE
,
'l10n_mode'
=>
'exclude'
,
'label'
=>
'LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:tx_sgnews_domain_model_author.name'
,
'config'
=>
[
'type'
=>
'input'
,
...
...
@@ -101,6 +146,7 @@ return [
],
'email'
=>
[
'exclude'
=>
FALSE
,
'l10n_mode'
=>
'exclude'
,
'label'
=>
'LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:tx_sgnews_domain_model_author.email'
,
'config'
=>
[
'type'
=>
'input'
,
...
...
@@ -120,6 +166,7 @@ return [
],
'image'
=>
[
'exclude'
=>
TRUE
,
'l10n_mode'
=>
'exclude'
,
'label'
=>
'LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:tx_sgnews_domain_model_author.image'
,
'config'
=>
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::
getFileFieldTCAConfig
(
'files'
,
[
...
...
@@ -133,6 +180,7 @@ return [
],
'path_segment'
=>
[
'label'
=>
'LLL:EXT:sg_news/Resources/Private/Language/locallang_db.xlf:tx_sgnews_domain_model_author.path_segment'
,
'l10n_mode'
=>
'exclude'
,
'config'
=>
[
'type'
=>
'slug'
,
'generatorOptions'
=>
[
...
...
This diff is collapsed.
Click to expand it.
ext_tables.sql
+
6
−
1
View file @
1dccc223
...
...
@@ -39,6 +39,11 @@ CREATE TABLE tx_sgnews_domain_model_author (
deleted
tinyint
(
4
)
unsigned
DEFAULT
'0'
NOT
NULL
,
hidden
tinyint
(
4
)
unsigned
DEFAULT
'0'
NOT
NULL
,
sys_language_uid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
l10n_parent
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
l10n_diffsource
mediumblob
,
PRIMARY
KEY
(
uid
),
KEY
parent
(
pid
)
KEY
parent
(
pid
),
KEY
language
(
l10n_parent
,
sys_language_uid
)
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment