[TYPO3-dev] BE - How can I get the site root page id from a given page id?
Stephen Bungert
stephenbungert at yahoo.de
Sat Aug 6 12:23:13 CEST 2011
Thanks, I know about the API docs, I assume you mean that I should use this
function: BEgetRootLine?
This is fine if I want to go back to page 0, but the function description
says unlike in the FE the rootline doesn't stop even if there is a root
template on the page. Is there a function that will do the same as
BEgetRootLine but stop like in the FE when a page has a root template?
"Kay Strobach" <typo3 at kay-strobach.de> schrieb im Newsbeitrag
news:mailman.1.1312624922.13120.typo3-dev at lists.typo3.org...
> Hi,
>
> http://api.typo3.org/typo3v4/current/html/classt3lib___b_efunc.html#ad0ddbd717a68dd8923deec22b9c20b35
>
> Regards
> Kay
>
> Am 06.08.2011 11:46, schrieb Stephen Bungert:
>> Is there a way of doing this in the BE?
>>
>> Do I have to manual get the parent page for the current page, see if it
>> has a parent and so on until I get to a page with a template records set
>> as root?
>
>
> --
> http://www.kay-strobach.de - Open Source Rocks
>
> TYPO3 .... inspiring people to share!
> Get involved: http://typo3.org
>
> Answere was usefull: https://flattr.com/profile/kaystrobach
More information about the TYPO3-dev
mailing list