GithubHelp home page GithubHelp logo

listelements's Issues

Listelement Items empty

I wanted to test this promising extension. I installed and configured the extension via composer as described in the instructions and created a content element.

Now I can create listelements, but not edit them. Not even the title field is editable.

Did I miss something?

Setup:
TYPO3 10.4.17
PHP 7.3.x
list elements 0.2.1

Further extensions:
container
content_defender

listelements-empty

Thanks in advance!

Version constraints

The composer.json file does not contain a version constraint for "typo3/cms" - I don't know what version is compatible with what TYPO3 version. Same goes for ext_emconf.php which shows v9-v10.

In addition, the license should be GPL-2+ (in composer.json)

Question: Indexer for ke_sarch

I am using listelements in a TYPO3 Project in combination with ke_sarch.
Is there already a ke_search indexer for the listelements records or has anyone done something like this before?

Listelement with tt_content columns as items

First of all thanks for this (and all your other) extensions.

I have a beginners question about using columns from tt_content instead of tx_listelements_item inside listelement items.

MY-SITEPACKAGE/Configuration/TCA/Overrides/tt_content.php

// ...

// TODO Radiobutton options translateable
    // definition of all cols to be added to the table tt_content
    $additionalColumns = [
        'MYVENDOR_parole_radio' => [
            'label' => 'LLL:EXT:MYVENDOR/Resources/Private/Language/locallang_db.xlf:tt_content.MYVENDOR_parole_parole',
            'config' => [
                'type' => 'radio',
                'items' => [
                    [   'Ja',
                        'yes',
                    ],
                    [
                        'Nein',
                        'no',
                    ],
                    [
                        'Stimmfreigabe',
                        'free',
                    ],
                ],
            ],
        ],
// ...
];

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $additionalColumns);

    $GLOBALS['TCA']['tt_content']['types']['MYVENDOR_parole'] = [
        'showitem' => '
         --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:general,
            --palette--;;general,
            tx_listelements_list,
            MYVENDOR_parole_radio,
        --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:language,
            --palette--;;language,
         --div--;LLL:EXT:core/Resources/Private/Language/Form/locallang_tabs.xlf:access,
            --palette--;;hidden,
            --palette--;;access,
      ',
    ];

    $GLOBALS['TCA']['tt_content']['types']['MYVENDOR_parole']['columnsOverrides'] = [
        'tx_listelements_list' => [
            'label' => 'LLL:EXT:MYVENDOR/Resources/Private/Language/locallang_db.xlf:tt_content.MYVENDOR_parole_vorlagen',
            'config' => [
                'appearance' =>  ['newRecordLinkTitle' => 'Add Vorlage TODO translate me'],
                'overrideChildTca' => [
                    // add a showitem configuration for the list items for this CType
                    'types' => [
                        '0' => [
                            'showitem' => '
                                header;LLL:EXT:MYVENDOR/Resources/Private/Language/locallang_db.xlf:tt_content.MYVENDOR_parole_vorlage,
                                MYVENDOR_parole_radio,
                                radio,
                                text,
                            --palette--;;hiddenpalette', // always include the hidden palette (languages)
                        ],
                    ],
                ],
                ]
            ],
    ];

// ...

MY-SITEPACKAGE/Classes/Hooks/DrawItem.php

<?php

namespace B13\SiteExtension\Hooks;

use TYPO3\CMS\Backend\View\PageLayoutViewDrawItemHookInterface;
use TYPO3\CMS\Backend\View\PageLayoutView;

/**
 * Class/Function to manipulate the rendering of item preview content
 * see: https://github.com/b13/listelements/blob/c6f26c733e6f11e5784ff7c8615f8566fc26c7e6/README.md
 *
 */
class DrawItem implements PageLayoutViewDrawItemHookInterface
{

    /**
     * @param PageLayoutView $parentObject : The parent object that triggered this hook
     * @param boolean $drawItem : A switch to tell the parent object, if the item still must be drawn
     * @param string $headerContent : The content of the item header
     * @param string $itemContent : The content of the item itself
     * @param array $row : The current data row for this item
     *
     * @return void
     */
    public function preProcess(PageLayoutView &$parentObject, &$drawItem, &$headerContent, &$itemContent, array &$row)
    {

        // get all list items (database column 'tx_listelements_list') including all assets
        if ($row['MYVENDOR_parole_radio']) {
            // array &$row, $field = '', $table = 'MYVENDOR_parole_radio', $filereferences = 'assets, additional_assets'
            \B13\Listelements\Service\ListService::resolveListitems($row, 'MYVENDOR_parole_radio', 'tt_content');
        }

    }

}

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.