GithubHelp home page GithubHelp logo

Comments (2)

davidsteeb avatar davidsteeb commented on July 25, 2024 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.

kimchristiansen avatar kimchristiansen commented on July 25, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.