[TYPO3-core] RFC: #7921: recursive pidInList for select in cObj CONTENT
Christian Kuhn
lolli at schwarzbu.ch
Fri Aug 15 02:15:20 CEST 2008
Georg Ringer wrote:
> this is a SVN patch request.
>
> Type: Feature, no_brainer
>
> Branches: 4_2
>
> Bugtracker Reference:
> http://bugs.typo3.org/view.php?id=7921
>
> Problem:
> Until now it is not possible to have a recursive function for the
> pidInlist which is often quite helpful to find records in a whole page
> tree. Before the patch you need a userfunction which could be solved now.
> IMO this patch is quite important to make the TS cObj CONTENT.select
> complete.
>
> TS example would be:
> page.5 = CONTENT
> page.5 {
> table = pages
> select {
> pidInList = 1
> recursive = 10
> orderBy = sorting DESC
> }
>
> renderObj = TEXT
> renderObj.field = uid
> renderObj.wrap= |,
> }
>
> Solution:
> Apply the patch
>
> Additional information:
> I now it is near to featurefreeze but this just so nice, so please!
+1 on reading and testing. The example above works well.
Maybe we can get this into 4.3 now.
Attached a new patch with minor modifications:
- Fixed a parse error due to a missing closing bracket
- Fixed minor CGL whitespace issues
- Added an isset to the if statement
Regards
Christian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch-recursive-content2.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20080815/64d9b812/attachment.txt
More information about the TYPO3-team-core
mailing list