[TYPO3-seminars] How to xclass seminars

Oliver Klee typo3-german-02 at oliverklee.de
Tue Apr 19 11:14:28 CEST 2011


Hi,

Am 05.04.2011 18:41, schrieb Felix Nagel:
> Nothing happens. Does the oelib autoloader respect xclasses?

Generally, yes. There was a bug concerning XCLASS in oelib < 0.7.0, but
that has been fixed.

> I tried to change the the form TS, too:
> newPlace_country = renderlet:LISTBOX
> newPlace_country {
>     name = newPlace_country
>     label = LLL:EXT:seminars/locallang_db.xml:tx_seminars_sites.country
>     wrap = <div class="formidable-rdrstd-rdtwrap">|</div>
>     data {
>         items {
>             10.caption = &nbsp;
>             10.value = 0
>         }
>         userobj.php (
>             require_once(t3lib_extMgm::extPath('oelib') .
> 'class.tx_oelib_Autoloader.php');
>             return ux_tx_seminars_pi1_eventEditor::populateListCountries();
>         )
>     }
> }

This is a static function call, i.e. there is no class instance and thus
no possibility to use XCLASSes.

However, you can just overwrite that TS to use your own user object call
for creating the list of countries.


Oli
-- 
Certified TYPO3 Integrator | TYPO3 Security Team Member


More information about the TYPO3-project-seminars mailing list