R
R
RushV2020-08-30 13:09:14
MODX
RushV, 2020-08-30 13:09:14

How to display an additional field on the page in ModX?

I welcome everyone!
How to display an additional field on the page?
5f4b7a6469a7d473603977.jpeg
Tried like this, doesn't work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Tarasov, 2020-08-30
@RushV

That won't work. Make the userField snippet look like this:

// профиль
$profile = $modx->user->getOne('Profile'));
// значение поля из множества extended
return $profile->get('extended')[$input];

And call like this:

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question