[TYPO3-english] Condition to see if page has limited access

Urs Bräm info at ursbraem.ch
Mon Apr 22 18:44:35 CEST 2013


Thanks, Patrick!

Am 09.04.13 10:25, schrieb Patrick Schriner:
> Hi,
>
> I have used a user function on a similar occasion:
>
> function user_feloginFromNewsletterCheck() {
>      $currentPage = $GLOBALS['TSFE']->page['uid'];
>      if (t3lib_div::_GP('id') != $currentPage) {
>          return TRUE;
>      }
>      return FALSE;
> }
>
> This only works if the 404 handling is "fallback to next upper allowed
> page" - as you cannot detect a redirect.
>
> The mad thing is that as far as I can tell there is no variable set in
> $GLOBALS['TSFE'] that would tell us which page *should* have been
> display - hence the fallback to use _$GP['id'] directly.
>
> Regards,
> Patrick


-- 
Urs Bräm
macht Websites
---
Certified Typo3 Integrator
CH-3011 Bern
www.ursbraem.ch


More information about the TYPO3-english mailing list