[TYPO3-german] "listnum = rand" unter 4.5
Bjoern Pedersen
bjoern.pedersen at frm2.tum.de
Mon Feb 7 16:00:29 CET 2011
Am 04.02.2011 13:50, schrieb Philipp Holdener:
> Hallo zusammen
>
> Unter TYPO3 4.4 hab ich die Ext "stdWrap Extended" benutzt um Bilder in
> den Seiteneigenschaften per Zufall einzufügen.
>
> Bsp
>
> lib.pageHeader = COA_INT
>
> lib.pageHeader.10 = IMAGE
>
> lib.pageHeader.10 {
>
> required = 1
>
> file.import= uploads/media/
>
> file.import.data = levelmedia: -1,slide
>
> file.import.listNum = rand
>
> file.import.override.field = media
>
> }
>
>
> Das scheint unter 4.5 nicht mehr funktionieren.
> Gibts da neu direkt was im Core?
>
>
> Besten Dank für eure Tipps.
>
> Gruss
> Philipp
In der englischen Liste wird gerade ein ähnliches Problem diskutiert:
Re: [TYPO3-dev] stdWrap hooks - problem in 4.5
Die Lösung hat Joey auch gefunden, ich zitiere sie hier mal:
> The problem is not the hook or the way it's implemented but Jigal already mentioned what could be the reason:
>
> There's an array $stdWrapOrder in tslib_cObj which determines both which properties are available and in which order they are executed.
> This has been done to make it possible to replace the huge "if" construct with real classes and function calls.
>
> The $conf array is intersected with this array and this way the custom stdWrap property you want to use is removed. So it's not enough to just implement the function. It has to be added to this array as well.
> You can use the stdWrapPreProcess hook to modify the array and add your own property to $stdWrapOrder.
>
> HTH
>
> Joey
Das muss also in die extension noch mit rein, sonst kommt das rand nie an.
Björn
More information about the TYPO3-german
mailing list