Hello there,
I enabled sql query in Select Field of Cobalt to allow user to select his name as following :
SELECT r.id, r.name AS text
FROM #__users AS r
WHERE r.id = [USER_ID]
And i added a link in Process into link. So when user goes in full article view, his name is displayed as link. Ok.
But i'm wondering if there is any way to display custom value instead of name of user; for example "User 01", because i don't want to display the name of user; user can view and select his name when he posts a new Cobalt article, but after saving, the name of user is replaced by my Custom value. It could be a sort of alias or mask ... i don't know.
I read this : http://stackoverflow.com/questions/4809452/sql-returning-custom-values-based-on-query-results
But i did not manage to set it up.
Help please.
Hello there,
I enabled sql query in Select Field of Cobalt to allow user to select his name as following :
SELECT r.id, r.name AS text FROM #__users AS r WHERE r.id = [USER_ID]
And i added a link in Process into link. So when user goes in full article view, his name is displayed as link. Ok.
But i'm wondering if there is any way to display custom value instead of name of user; for example "User 01", because i don't want to display the name of user; user can view and select his name when he posts a new Cobalt article, but after saving, the name of user is replaced by my Custom value. It could be a sort of alias or mask ... i don't know.
I read this : http://stackoverflow.com/questions/4809452/sql-returning-custom-values-based-on-query-results
But i did not manage to set it up.
Help please.