Sorting 'random'

View: New views
5 Messages — Rating Filter:   Alert me  

Sorting 'random'

by Tapio Markula-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

Does Typo3 support as build somewhat random sorting of pages?
Any existing plugin, which use random sorting?
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: Sorting 'random'

by Steffen Kamper-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tapio Markula schrieb:
> Hi
>
> Does Typo3 support as build somewhat random sorting of pages?
> Any existing plugin, which use random sorting?

Hi Tapio,

have a look at wizard_sortpages. You may extend it.
Built in sorting:
    Page title
    Subtitle
    Change-time
    Create-time

    Reverse current order

vg Steffen
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: Sorting 'random'

by Tapio Markula-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Steffen Kamper kirjoitti:
> Tapio Markula schrieb:
>> Hi
>>
>> Does Typo3 support as build somewhat random sorting of pages?
>> Any existing plugin, which use random sorting?
>
> Hi Tapio,
>
> have a look at wizard_sortpages

where defined?

. You may extend it.
> Built in sorting:
>    Page title
>    Subtitle
>    Change-time
>    Create-time
>
>    Reverse current order

Endeed reordering in *subtree* might be difficult - final menuarray
should be modified with some principle - maybe using for a page new
field 'randomize'.
Where to start?
I didn't found a suitable hook in the class.tslib_menu.php
If needed a userfunction, is there any way to keep existing menuarray
and modify it just partially.
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: Sorting 'random'

by Steffen Kamper-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tapio Markula schrieb:
Tapio Markula schrieb:

> Steffen Kamper kirjoitti:
>> Tapio Markula schrieb:
>>> Hi
>>>
>>> Does Typo3 support as build somewhat random sorting of pages?
>>> Any existing plugin, which use random sorting?
>>
>> Hi Tapio,
>>
>> have a look at wizard_sortpages
>
> where defined?
>

typo3/sysext/wizard_sortpages/class.tx_wizardsortpages_webfunc_2.php

all is there, have a look inside.

vg Steffen
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev

Re: Sorting 'random'

by Tapio Markula-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Steffen Kamper kirjoitti:

> Tapio Markula schrieb:
> Tapio Markula schrieb:
>> Steffen Kamper kirjoitti:
>>> Tapio Markula schrieb:
>>>> Hi
>>>>
>>>> Does Typo3 support as build somewhat random sorting of pages?
>>>> Any existing plugin, which use random sorting?
>>>
>>> Hi Tapio,
>>>
>>> have a look at wizard_sortpages
>>
>> where defined?
>>
>
> typo3/sysext/wizard_sortpages/class.tx_wizardsortpages_webfunc_2.php
>
> all is there, have a look inside.

in fact setting 'rand()' is enough - for some reason

tt_content.menu.20.2.special=directory
tt_content.menu.20.2.special.value=1
[PIDinRootline=5]
tt_content.menu.20.2.2.alternativeSortingField = rand()
tt_content.menu.20.2.2.itemArrayProcFunc = user_itemArrayProcFunc
[global]
didn't work - I mean the condition PID... but this not a big problem
_______________________________________________
TYPO3-dev mailing list
TYPO3-dev@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
LightInTheBox - Buy quality products at wholesale price