Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling individual extrafields do not work #41

Closed
krmrtrzv opened this issue Dec 20, 2023 · 2 comments
Closed

Calling individual extrafields do not work #41

krmrtrzv opened this issue Dec 20, 2023 · 2 comments

Comments

@krmrtrzv
Copy link

In K2 / J3 it was possible to call individual extra-fields by name or alias, like:

item->extraFields->MyExtraFirldName->name): ?> item->extraFields->MyExtraFirldName->value; ?>.

This functionality seems not working in J4 or there is a new way for the call?

@eworkers
Copy link
Owner

share you code please so we can take a look, this API has not been changed.
note that to get the extra-field name:
$this->item->extraFields->EXTRAFIELD_ALIAS->name;
note this EXTRAFIELD_ALIAS, it is not YourExtraFirldName, it is your YourExtraFieldAlias
and to get the the value of it:
$this->item->extraFields->EXTRAFIELD_ALIAS->value;

@krmrtrzv
Copy link
Author

krmrtrzv commented Jan 12, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants