[TYPO3] Override TS for a specific page (meta refresh)

nirmalya Mondal nirmalya at fivee.in
Fri Dec 8 08:03:11 CET 2006


Pierre Rossel wrote:
> Hello,
> 
> I have written some TypoScript to make pages in a folder automaticaly 
> refresh to the next one. This makes rotating pages.
> 
> In case it is usefull to someone, the code is below.
> 
> The delay is defined in the constants section. But now I want one special 
> page to have a special delay value (4 s), while leaving the default value 
> (10 s) for other pages.
> Is there a way to override the TS constant RefreshDelay in that page ?
> 
> Thank you.
> 
> Pierre Rossel
> 
> 
> Here is the code:
> 
> Constants:
> 
> RefreshDelay = 10
> 
> Setup:
> 
> // Build page number of next page or first page if we are on the last one
> temp.nextPage = HMENU
> temp.nextPage {
>   maxItems = 1
>   special = browse
>   special.items = next | first
>   1 = TMENU
>   1.NO = 1
>   1.NO.subst_elementUid = 1
>   1.NO.allWrap = {elementUid}
>   1.NO.doNotShowLink = 1
> }
> 
> page.meta.REFRESH {
>   wrap = {$RefreshDelay}; URL=index.php?id= |
>   cObject < temp.nextPage
> }
> 
> 
> 
Hello,
I have an idea to track a specific page from BE.This may help you :-)
---
constant:
uid.Homepage = 2
setup:
[globalVar= TSFE:id = {$uid.Homepage}]
  temp.nextPage >
  white Your functionality of this specific page here

[end]

Thank You.
Regards,
nirmalya Mondal
-----------------
http://www.fivee.in


More information about the TYPO3-english mailing list