I am creating an Alternate Layout of /components/com_fields/layouts/field/render.php to change the layout of some given Custom Fields. And there I need the ID of the article in order to give a unique #id to the container.
There I wanted/needed to fetch the Article ID, but the Layout does not seem to have any information about the context.
I had first thought that the following could work:
$id = $app->input->getCmd('id', '');
It indeed gives the article id... but only if you are on an Article View. If you are on a Blog View, it gives the ID of the category.
So would there be some direct or indirect way (by overriding another file for example) to get that Article ID in a Blog view?
Txs