Comments (2)
Yes, we are still in the process of finishing up work here, and the documentation is lacking.
Here's what I suppose is missing: You need to add a showitem
configuration to your element for the list items. This might look like this:
$GLOBALS['TCA']['tt_content']['types']['<yourelement>']['columnsOverrides'] = [
// configuration for this element's tt_content field configuration
'header' => [
'description' => 'Description for the header field of the tt_content element',
],
'tx_listelements_list' => [
'label' => 'My List Item Label',
'config' => [
'appearance' => [
'newRecordLinkTitle' => 'Add a new item to my list',
],
'overrideChildTca' => [
// add a showitem configuration for the list items for this CType
'types' => [
'0' => [
'showitem' => '
header,
text,
--palette--;;hiddenpalette', // always include the hidden palette (languages)
],
],
'columns' => [
// change configuration for fields for list items here (for this CType's list items)
'text' => [
'config' => [
'rows' => 5,
],
],
],
],
],
],
];
You can change the fields for list items for each CType you create.
from listelements.
Thank you very much for the quick answer. That was the missing piece of information. Keep up the good work!
from listelements.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from listelements.