Reputation: 2476
I am trying to create a new content element
(not sure if its the correct name for it) and i want to achieve something like this
body text
in my tt_content.php file i have the following:
'showitem' => '
--div--;Intro,
--palette--;LLL:EXT:/path/to/locallang_ttc.xlf:palette.general;
general,
header,
bodytext,
module_background_color,
--palette--;;cta,
I tried to add something like this
'showitem' => '
--div--;Intro,
--palette--;LLL:EXT:/path/to/locallang_ttc.xlf:palette.general;
general,
header,
header,
bodytext,
module_background_color,
--palette--;;cta,
or this
'showitem' => '
--div--;Intro,
--palette--;LLL:EXT:/path/to/locallang_ttc.xlf:palette.general;
general,
header,
bodytext,
bodytext,
module_background_color,
--palette--;;cta,
both didnt work and i can only get 1 header and 1 body text, i am so new to this and somehow i need to do it
p.s i can't do it via 1 header because every header has its own styling. Thanks
Upvotes: 0
Views: 211
Reputation: 3354
One column can only be used once!
Take an look in the header
element. Here you can see an column named subheader
.
so following should add another header column:
'showitem' => '
--div--;Intro,
--palette--;LLL:EXT:/path/to/locallang_ttc.xlf:palette.general;
general,
header,
subheader,
bodytext,
module_background_color,
--palette--;;cta,
Upvotes: 1