Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content option in backend #5

Open
DavidBruchmann opened this issue Sep 18, 2021 · 1 comment
Open

Content option in backend #5

DavidBruchmann opened this issue Sep 18, 2021 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested TCA

Comments

@DavidBruchmann
Copy link
Owner

Based on settings in TCA there exist two options to connect content to a news-record:

  1. Create new content with the but create new
  2. Create a new relation to existing content

The target is to offer both solutions but currently I don't know how to achieve that.

image

The TCA is looking like this currently:


    'tx_wdbnewssnapin_ttcontent' => [
        'exclude' => 1,
        'label'   => $ll . 'tx_news_domain_model_news.tx_wdbnewssnapin_ttcontent',
        'config'  => [
            'type'                => 'inline',
            'foreign_table'       => 'tx_wdbnewssnapin_news_ttcontent_mm',
            'foreign_field'       => 'uid_news',
            'foreign_sortby'      => 'sorting_ttcontent', // sorting_news
            'foreign_label'       => 'uid_ttcontent',
            'foreign_selector'    => 'uid_ttcontent',
            'foreign_unique'      => 'uid_ttcontent',
            'maxitems'            => 9999,
            'appearance'       => [
                'collapseAll'     => true,
                'expandSingle'    => true,
                'newRecordLinkAddTitle' => false,
                'levelLinksPosition' => 'top',
                'useCombination'  => true,
                'useSortable'     => true,
                'showNewRecordLink' => true,
                'showPossibleRecordsSelector' => true,
                'showSynchronizationLink' => true,
                'showAllLocalizationLink' => true,
                'showPossibleLocalizationRecords' => true,
                'enabledControls' => [
                    'info'           => true,
                    'new'            => true,
                    'dragdrop'       => true,
                    'sort'           => true,
                    'hide'           => true,
                    'delete'         => true,
                    'localize'       => true,
                ],
            ],
            'behaviour' => [
                'allowLanguageSynchronization' => true,
            ],
        ],
    ],
@DavidBruchmann
Copy link
Owner Author

The issue is related to a bug (or behavior) in the core:

https://forge.typo3.org/issues/97833

TYPO3-CMS/styleguide#331

Concerning this the TCA of this extension is still WIP (work in progress)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested TCA
Projects
None yet
Development

No branches or pull requests

1 participant