Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 2202

Joomla! 5.x Coding • Re: Dynamic sql custom field

$
0
0
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 code

Code:

$created_by = $displayData['item']->created_by;if ($field->id == '75')  { $value = $created_by; }
And 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?

Statistics: Posted by fotonio — Sat Jan 11, 2025 9:45 pm



Viewing all articles
Browse latest Browse all 2202

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>