[TYPO3-english] generic markers: display the be_user name that created the tt_news record
Christian Hennecke
christian.hennecke at wunderknaben.com
Fri Jun 15 12:36:48 CEST 2012
Am 14.06.2012 16:39, schrieb Morten Kjems:
> I am stock with a TS problem.
>
> I am using the extension generic markers to display some additional info
> about the tt_news record in the Front End.
>
> I would like to display the name and username of the BE user who created
> the record.
>
> I can get the ID of the BE User with this snippet:
>
> plugin.tt_news.genericmarkers {
> data = cruser_id
> created_by = TEXT
> created_by {
> field = generic_cruser_id
> }
>
> This will output the BE-user ID with the marker ###GENERIC_CRUSER_ID###.
Shouldn't that be ###GENERIC_CREATED_BY###?
>
> But how do I get the the BE users username and realName from the table
> be_users?
>
> All suggestions are most welcome.
You should be able to use the RECORDS object with cruser_id for source:
plugin.tt_news.genericmarkers {
data = cruser_id
creator = RECORDS
creator {
source.field = generic_cruser_id
tables = be_users
conf.be_users = TEXT
conf.be_users.field = realName
}
}
More information about the TYPO3-english
mailing list