Track logged in user through typoscript

[usergroup=*]

lib.userinfo = COA_INT

lib.userinfo {

10 = TEXT

10.data = TSFE:fe_user|user|username

10.wrap = Welcome, |

10.required = 1

}

[else]

lib.userinfo = COA_INT

lib.userinfo = Welcome, Guest

[end]

Fetch content from any page of typo3

lib.bannerBox= CONTENT

lib.bannerBox{

table = tt_content

select {

pidInList = 5

#uidInList = 2

where = colPos = 1

languageField = sys_language_uid

}

}

Display content of This page if empty fetch from specific page of typo3

lib.footerContent = CONTENT

lib.footerContent < styles.content.getLeft

lib.footerContent.stdWrap.ifEmpty.cObject < lib.footerContentTwo

 

lib.footerContentTwo = CONTENT

lib.footerContentTwo {

table = tt_content

select...