[TYPO3-english] <extension> js_select has limitation of 10 js files, is that the case?

Guan Ming guanming.jgh at gmail.com
Mon Dec 31 02:59:36 CET 2012


Hi, Philipp

Inspiring from your explanation, I manage to include upto 20 items by
modify some code from its extension file ext_table.php. following are part
of the source code:

$tempColumns = array(
    'tx_jsselect_javascripts' => array(
        'exclude' => 1,
        'label'   =>
'LLL:EXT:js_select/locallang_db.php:pages.tx_jsselect_javascripts',
        'config'  => array(
            'type'          => 'select',
            'items'         => array(),
            'itemsProcFunc' => 'tx_jsselect_handleJavascripts->main',
          *  'size'          => 20,*
*            'maxitems'      => 20,*
            'iconsInOptionTags' => true
        )
    ),
......
......

I need to change both values for key 'size' & 'maxitems' to 20. Change of
'maxitems' to 20 alone doesn't work either.

Anyway, Thanks for your help

Happy New Year

Guan Ming


On 30 December 2012 23:53, Philipp Gampe <philipp.gampe at typo3.org> wrote:

> Hi Guan,
>
> Guan Ming wrote:
>
> > I am not sure this issue is coming from the extension or is the
> limitation
> > of TYPO3 BE, there is also no configuration about limitation of js files
> > to include.  I am also not very sure if css_select has this similar
> issue.
>
> The warning is a bit misleading, but the limitation comes from the "table
> configuration array" (TCA).
> There should be a key columns, with a subkey with the name of the database
> column. There the display and accepted values (eval key) are configured.
>
> You can use the configuration module to inspect the values (there is
> properly a max values defined) and to generated the needed PHP lines for
> AdditionalConfiguration.php
> However this is broken in 6.0, I will push a fix.
>
> In the meantime you can do this with a lower version of TYPO3 CMS. E.g.
> have
> a look at
> $TCA['pages']['columns']['fe_group']['config']['maxitems'] = 20;
>
> That means you can just select 20 FE-Groups in the page properties. You can
> set any upper other upper limit if you need to configure more groups for a
> page.
>
> Best regards
> --
> Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
> Documentation – linkvalidator
> TYPO3 .... inspiring people to share!
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list