I tried something else. Instead of sql i made a text field and following this solution by Sharky i managed to get the created_by value by creating an override to html/layouts/com_fields/field/cust-render.php with the codeAnd it works. But when i put the text field inside the subform it stops working.
I see that subfield values probably are prepared in plugins/fields/subform/src/Extension/Subform.php
Any tips?
Code:
$created_by = $displayData['item']->created_by;if ($field->id == '75') { $value = $created_by; }
I see that subfield values probably are prepared in plugins/fields/subform/src/Extension/Subform.php
Any tips?
Statistics: Posted by fotonio — Sat Jan 11, 2025 9:45 pm