Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_jobs
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor 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_jobs
Commits
6c41c465
Commit
6c41c465
authored
7 years ago
by
Torsten Oppermann
Browse files
Options
Downloads
Patches
Plain Diff
[TASK] Initial creation of tca
parent
90ea82d5
No related branches found
Branches containing commit
Tags
4.1.2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Configuration/TCA/tx_sgjobs_domain_model_job.php
+200
-0
200 additions, 0 deletions
Configuration/TCA/tx_sgjobs_domain_model_job.php
ext_tables.sql
+10
-0
10 additions, 0 deletions
ext_tables.sql
with
210 additions
and
0 deletions
Configuration/TCA/tx_sgjobs_domain_model_job.php
0 → 100644
+
200
−
0
View file @
6c41c465
<?php
return
[
'ctrl'
=>
[
'title'
=>
'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job'
,
'label'
=>
'title'
,
'tstamp'
=>
'tstamp'
,
'crdate'
=>
'crdate'
,
'cruser_id'
=>
'cruser_id'
,
'dividers2tabs'
=>
TRUE
,
'searchFields'
=>
'title, start_date, company, location, contact'
,
'versioningWS'
=>
2
,
'versioning_followPages'
=>
TRUE
,
'origUid'
=>
't3_origuid'
,
'languageField'
=>
'sys_language_uid'
,
'transOrigPointerField'
=>
'l10n_parent'
,
'transOrigDiffSourceField'
=>
'l10n_diffsource'
,
'delete'
=>
'deleted'
,
'enablecolumns'
=>
[
'disabled'
=>
'hidden'
,
'starttime'
=>
'starttime'
,
'endtime'
=>
'endtime'
,
],
'sortby'
=>
'sorting'
,
'iconfile'
=>
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility
::
extRelPath
(
'sg_jobs'
)
.
'Resources/Public/Icons/tx_sgjobs_domain_model_job.svg'
],
'interface'
=>
[
'showRecordFieldList'
=>
'sys_language_uid, l10n_parent, l10n_diffsource, hidden, pid, title, subtitle,
start_date, company, description, location, contact'
,
],
'types'
=>
[
'1'
=>
[
'showitem'
=>
'--palette--;;sysLanguageAndHidden,
title, subtitle, start_date, company, description, location, contact;;;richtext[*]:rte_transform[mode=ts],
--div--;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:tabs.access, starttime, endtime'
,
],
],
'palettes'
=>
[
'sysLanguageAndHidden'
=>
[
'showitem'
=>
'sys_language_uid;;;;1-1-1, l10n_diffsource, hidden;;1, '
,
'canNotCollapse'
=>
1
,
]
],
'columns'
=>
[
'sys_language_uid'
=>
[
'exclude'
=>
1
,
'label'
=>
'LLL:EXT:lang/locallang_general.xml:LGL.language'
,
'config'
=>
[
'type'
=>
'select'
,
'foreign_table'
=>
'sys_language'
,
'foreign_table_where'
=>
'ORDER BY sys_language.title'
,
'items'
=>
[
[
'LLL:EXT:lang/locallang_general.xml:LGL.allLanguages'
,
-
1
],
[
'LLL:EXT:lang/locallang_general.xml:LGL.default_value'
,
0
]
],
],
],
'l10n_parent'
=>
[
'displayCond'
=>
'FIELD:sys_language_uid:>:0'
,
'exclude'
=>
1
,
'label'
=>
'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent'
,
'config'
=>
[
'type'
=>
'select'
,
'items'
=>
[
[
''
,
0
],
],
'foreign_table'
=>
'tx_sgjobs_domain_model_base'
,
'foreign_table_where'
=>
'AND tx_sgjobs_domain_model_base.pid=###CURRENT_PID### AND tx_sgjobs_domain_model_base.sys_language_uid IN (-1,0)'
,
],
],
'l10n_diffsource'
=>
[
'config'
=>
[
'type'
=>
'passthrough'
,
],
],
't3ver_label'
=>
[
'label'
=>
'LLL:EXT:lang/locallang_general.xml:LGL.versionLabel'
,
'config'
=>
[
'type'
=>
'input'
,
'size'
=>
30
,
'max'
=>
255
,
]
],
'pid'
=>
[
'exclude'
=>
0
,
'label'
=>
'PID'
,
'config'
=>
[
'type'
=>
'none'
,
]
],
'hidden'
=>
[
'exclude'
=>
1
,
'label'
=>
'LLL:EXT:lang/locallang_general.xml:LGL.hidden'
,
'config'
=>
[
'type'
=>
'check'
,
],
],
'starttime'
=>
[
'exclude'
=>
1
,
'l10n_mode'
=>
'mergeIfNotBlank'
,
'label'
=>
'LLL:EXT:lang/locallang_general.xml:LGL.starttime'
,
'config'
=>
[
'type'
=>
'input'
,
'size'
=>
13
,
'max'
=>
20
,
'eval'
=>
'datetime'
,
'checkbox'
=>
0
,
'default'
=>
0
,
'range'
=>
[
'lower'
=>
mktime
(
0
,
0
,
0
,
date
(
'm'
),
date
(
'd'
),
date
(
'Y'
))
],
],
],
'endtime'
=>
[
'exclude'
=>
1
,
'l10n_mode'
=>
'mergeIfNotBlank'
,
'label'
=>
'LLL:EXT:lang/locallang_general.xml:LGL.endtime'
,
'config'
=>
[
'type'
=>
'input'
,
'size'
=>
13
,
'max'
=>
20
,
'eval'
=>
'datetime'
,
'checkbox'
=>
0
,
'default'
=>
0
,
'range'
=>
[
'lower'
=>
mktime
(
0
,
0
,
0
,
date
(
'm'
),
date
(
'd'
),
date
(
'Y'
))
],
],
],
'title'
=>
[
'exclude'
=>
0
,
'label'
=>
'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.title'
,
'config'
=>
[
'type'
=>
'input'
,
'size'
=>
30
,
'eval'
=>
'trim'
],
],
'subtitle'
=>
[
'exclude'
=>
0
,
'label'
=>
'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.subtitle'
,
'config'
=>
[
'type'
=>
'input'
,
'size'
=>
30
,
'eval'
=>
'trim'
],
],
'start_date'
=>
[
'exclude'
=>
1
,
'label'
=>
'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.start_date'
,
'config'
=>
[
'type'
=>
'input'
,
'size'
=>
13
,
'max'
=>
20
,
'eval'
=>
'datetime'
,
'checkbox'
=>
0
,
'default'
=>
0
,
'range'
=>
[
'lower'
=>
mktime
(
0
,
0
,
0
,
date
(
'm'
),
date
(
'd'
),
date
(
'Y'
))
],
],
],
'company'
=>
[
'exclude'
=>
0
,
'label'
=>
'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.company'
,
'config'
=>
[
'type'
=>
'input'
,
'size'
=>
30
,
'eval'
=>
'trim'
],
],
'description'
=>
[
'exclude'
=>
0
,
'label'
=>
'LLL:EXT:sg_jobs/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.description'
,
'config'
=>
[
'type'
=>
'input'
,
'size'
=>
30
,
'eval'
=>
'trim'
],
],
'location'
=>
[
'exclude'
=>
0
,
'label'
=>
'LLL:EXT:sg_energieportal/Resources/Private/Language/locallang_db.xlf:tx_sgjobs_domain_model_job.location'
,
'config'
=>
[
'type'
=>
'select'
,
'renderType'
=>
'selectSingle'
,
'internal_type'
=>
'db'
,
'allowed'
=>
'tx_sgjobs_domain_model_location'
,
'foreign_table'
=>
'tx_sgjobs_domain_model_location'
,
'MM'
=>
'tx_sgjobs_domain_model_job_location'
,
'size'
=>
6
,
'maxitems'
=>
500
,
'multiple'
=>
1
,
]
]
],
];
?>
This diff is collapsed.
Click to expand it.
ext_tables.sql
+
10
−
0
View file @
6c41c465
...
...
@@ -44,6 +44,16 @@ CREATE TABLE tx_sgjobs_domain_model_job (
KEY
language
(
l10n_parent
,
sys_language_uid
)
);
CREATE
TABLE
tx_sgenergieportal_domain_model_job_location
(
uid_local
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
uid_foreign
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
tablenames
varchar
(
255
)
DEFAULT
''
NOT
NULL
,
sorting
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
sorting_foreign
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
KEY
uid_local
(
uid_local
),
KEY
uid_foreign
(
uid_foreign
)
);
CREATE
TABLE
tx_sgjobs_domain_model_location
(
uid
int
(
11
)
NOT
NULL
auto_increment
,
pid
int
(
11
)
DEFAULT
'0'
NOT
NULL
,
...
...
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