8 years ago
Topic

Hi,

In my "article created by" field the author name is displayed and i do not want this. I would like to display the username (or login name).

Somebody has an idea to do this?

Get a Book for SEBLOD
1283 Posts
Bucklash
8 years ago
3
Level 1

Hi

Interesting to see other answers bit I would ise beforestore to alter the value of the field

$fields['some_field']->value = $fields['some_other_field']->value;

4229 Posts
Kadministrator
8 years ago
2
Level 2

You could alter field texts with beforeRender, but that is not the right approach in my opinion. Instead of article created by you nwill need to create new field of type Select dynamic with simple query (free mode):

SELECT id AS value, username AS text FROM #__users

8 years ago
1
Level 3

Thank you it work well even the link to the author profile, but when I use the live value in the select dynamic field to select automaticaly the username it don't work.

In the the live column I select USER then I configure it with username in the property field. When the form is open, the value in the select dynamic field is still -Select an option-.

Is it not possible to use live value in select dynamic field?

8 years ago
0
Level 4

I found the solution. Of course I made a mistake.

In the property field I need to put "id", not "userame". I think because the request call "id" as value and not username.

Thank you guys!

Get a Book for SEBLOD