[TYPO3] TS: userfunc with result of select

Boris Degenhardt degenhardt at visor3000.com
Thu Sep 4 17:10:10 CEST 2008


Hey TYPO3s,
i have the following TS and want to give user= in temp.icons the uid of 
the user from the selectstatement of temp.startUser to use it in my 
userfunc. Can somebody help? Thx alot

includeLibs.usericons = fileadmin/template/php/usericons.php
temp.icons = USER
temp.icons {
	userFunc = user_icons->getIcons
	user =
}

temp.v3User = COA
temp.v3User {
	10 = TEMPLATE
	10.template = FILE
	10.template.file = {$html}user.html
	10.workOnSubpart = BODY
	10.marks {
		IMAGE < temp.userImage
		NAME = TEXT
		NAME.field = username
		GENUSS < temp.icons
	}	
}

temp.startUser = COA
temp.startUser {

	10 = CONTENT
	10 {
		table = fe_users
		select.max = 3
		select.where = 1=1
		select.andWhere = usergroup=2
		select.pidInList = 19
		select.sorting = crdate
		renderObj = COA
		renderObj {
			10 < temp.v3User
		}
	}
}

Viele Grüße
Boris


More information about the TYPO3-english mailing list