[TYPO3-ttnews] conditional backPid

Mario Šargač sargac at gmail.com
Sat Jan 8 21:00:36 CET 2011


Hi Kay,

thanks for a great hint :) I was hoping that would be a part of a common 
workflow for many and there is already some tt_news setting available 
for that.

Here's the final TS for the Constants part of the page that works and 
might help someone with similar scenarios:
----------------------------------------
[globalString = IENV:HTTP_REFERER= *22*]
plugin.tt_news.backPid = 23
[else]
plugin.tt_news.backPid = 22
[global]
----------------------------------------

Best,
Mario


On 01/08/2011 08:43 PM, Kay Strobach wrote:
> Am 08.01.2011 20:39, schrieb Mario Šargač:
>> Hello,
>>
>> does anyone know whether it is possible to set a conditional "backPid",
>> so it would be possible to have only one page for "single view", and two
>> pages for "list", one showing only new items, and other archived items.
>>
>> Both pages would point to same single view, but the "backPid" would be
>> different, depending on which page you came from.
>>
>> Best,
>> Mario
>
> Should be possible with TS if you check the referer ;)
>
> Best regarsds
> Kay


More information about the TYPO3-project-tt-news mailing list