I add further checkboxes to pages (which already works), which are
restricted to special page types.
but now I should add one of these three checkboxes I add to normal
pages, to pages of type 'external url'.
so for normal pages there should be:
additional Options for normal pages:
[ ] option1 [ ] option2 [ ] option3
and for pages of type Shortcut to external URL there should be:
additional option for external-URL-pages:
[ ] option2
Is there a way to use the bit2 just for type 3 records (external URL)?
this might cause to have two TCA definitions for the same DB-field?
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::
addToAllTCAtypes('pages','tx_myext_flags1;;;;1-1-1','1,2','after:description');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::
addToAllTCAtypes('pages','tx_myext_flags1b;;;;1-1-1','3','after:url');
but that are fielddefinitions for fieldnames (so the 2nd variant does
not exists as an own db-field).
$tempColumns = array(
'tx_myext_flags1' => array(
'exclude' => 1,
'label' => 'LLL:EXT:myext/locallang_db.xml:pages.tx_myext_flags1',
'config' => array(
'type' => 'check',
'cols' => 5,
'items' => array(
array('LLL:EXT:myext/locallang_db.xml:pages.tx_myext_flags1.I.0', '0'),
array('LLL:EXT:myext/locallang_db.xml:pages.tx_myext_flags1.I.1', '1'),
array('LLL:EXT:myext/locallang_db.xml:pages.tx_myext_flags1.I.2', '2'),
),
)
),
'tx_myext_flags1b' => array(
'exclude' => 1,
'label' => 'LLL:EXT:myext/locallang_db.xml:pages.tx_myext_flags1b',
'config' => array(
'type' => 'check',
'cols' => 5,
'items' => array(
array('LLL:EXT:myext/locallang_db.xml:pages.tx_myext_flags1.I.1', '1'),
),
),
),
);
is there a solution with redefining the fieldusage or need I introduce
another field for this ckeckbox?
bernd
--
http://www.pi-phi.de/cheatsheet.html
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german