[TYPO3-english] TMENU display title mm relations
Muriel le Pair
typo3 at strangefruit.nl
Tue Aug 19 10:35:45 CEST 2014
Hi,
I have extended pages with an extra field to select certain sector (mm
relation).
I need to display these values in a TMENU. I wonder if somehow these
fields are somehow available by default (since I can output
{field:sf_sector} but this value is useless.
1 = TMENU
1 {
NO = 1
NO {
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10 {
value = <li class={field:sf_sector.title}>
insertData = 1
}
}
}
}
TCA:
$tempColumns = array(
'sf_sector' => array(
'exclude' => 1,
'label' =>
'LLL:EXT:sf_publicaties/Resources/Private/Language/locallang_db.xlf:tx_pages.sector',
'config' => array(
'type' => 'select',
'foreign_table' => 'tx_sfpublicaties_domain_model_sector',
'MM' => 'tx_sfpublicaties_items_sectorpages_mm',
'size' => 10,
'autoSizeMax' => 30,
'maxitems' => 9999,
'multiple' => 0,
'wizards' => array(
'_PADDING' => 1,
'_VERTICAL' => 1,
'edit' => array(
'type' => 'popup',
'title' => 'Edit',
'script' => 'wizard_edit.php',
'icon' => 'edit2.gif',
'popup_onlyOpenIfSelected' => 1,
'JSopenParams' =>
'height=350,width=580,status=0,menubar=0,scrollbars=1',
),
'add' => Array(
'type' => 'script',
'title' => 'Create new',
'icon' => 'add.gif',
'params' => array(
'table' => 'tx_sfpublicaties_domain_model_sector',
'pid' => '###CURRENT_PID###',
'setValue' => 'prepend'
),
'script' => 'wizard_add.php',
),
),
),
),
)
--
kind regards,
Muriel le Pair
More information about the TYPO3-english
mailing list