[TYPO3-irre] Sorting of IRRE Children

Jeff Segars jsegars at alumni.rice.edu
Fri Sep 14 16:32:33 CEST 2007


Hey Olly,
Thanks for the followup :)  I had thought about the approach you
recommend and its probably the best option I have right now.

For my particular case, I don't think its the ideal long term scenario
though.  Since there is manual sorting for the list module, the only
time the IRRE sorting will be used is in IRRE view.  I think it would
probably be more intuitive to the user if there was no IRRE sorting
option at all since the sorting doesn't change anything externally. I
can see users getting confused as they move child records around and
it doesn't change list view or the frontend.

What would you think about adding TCA option to turn sorting off,
regardless of the settings in the foreign table.  My situation may be
unique enough that this setting doesn't make sense for the core, but
I'll leave that up to you ;)

Thanks!
Jeff


Oliver Hader <oh at inpublica.de> wrote:
>  If using $TCA[<table>]['ctrl']['sortby'] for both - list view and
> IRRE - it will lead to conflicts. IRRE creates the sort indexes only
> for the scope of the parent object and the list module does this for
> all childrecords.

>  But you could use and individual field that stores the sorting if
> usedin the IRRE context by setting the 'foreign_sortby' property, e.g.

>  $TCA[<table>]['columns'][<field>]['config'] = array(
>    'type' => 'inline',
>    'foreign_table' => 'tx_myext_child',
>    'foreign_field' => 'parent',
>    'foreign_sortby' => 'sorting',
>    ...
>  );





More information about the TYPO3-project-irre mailing list