Hi! We have setup up a template for a wwebsite that uses a shwotime custom field in com_content. So a gallery can easilty be added to artciles.
Ik knw we can use the editor plugin to add a tag in the content of an artivle that will show the galery attached to the aricle. But I would like to do this in our template.
In our template I have the ID of the galery. I tried:
echo JHTML::_('content.prepare', '{field 3}');
But that does not work. I get this errro:
0 - count(): Argument #1 ($value) must be of type Countable|array, null given
Is there a way to render the gallery in our tempate using the custom field gallery ID value we have?
Ik knw we can use the editor plugin to add a tag in the content of an artivle that will show the galery attached to the aricle. But I would like to do this in our template.
In our template I have the ID of the galery. I tried:
echo JHTML::_('content.prepare', '{field 3}');
But that does not work. I get this errro:
0 - count(): Argument #1 ($value) must be of type Countable|array, null given
Is there a way to render the gallery in our tempate using the custom field gallery ID value we have?