[TYPO3-project-realty] 2 list view template questions

horace horace3d at gmail.com
Mon Oct 12 16:26:12 CEST 2009


On Mon, Oct 12, 2009 at 3:24 PM, Oliver Klee
<typo3-german-02 at oliverklee.de>wrote:

> Hi,
>
> horace schrieb:
> > ok, here is my high quality patch:
> >
> > class.tx_realty_pi1.php
> >
> > replace line 791:
> > $position = ($rowCounter == 0) ? 'first' : '';
> > with:
> > $position = ($rowCounter % 2) ? 'odd' : 'even';
>
> This break the class "first".
>


if you also need "first" there just would have to be an additional if clause
i guess.

something like:

$position = ($rowCounter % 2) ? 'odd' : 'even';
if($rowCounter == 0) $position .= ' first';

but i haven't tested it.



>
> In addition, could you please post the patch to the bug tracker as a
> unified diff?
>


i am not familiar with diff tools and doing proper patches. maybe you can
give me a tip where to learn about it or maybe you can post the batch for
me?


cheers,
horace



>
> Some unit tests would also be great.
>
> Thanks,
>
>
> Oliver
> _______________________________________________
> TYPO3-project-realty mailing list
> TYPO3-project-realty at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-realty
>


More information about the TYPO3-project-realty mailing list