#196 Posted in ‘Showtime Image Gallery’

Latest post by Lefteris Kavadas on Sunday, 24 June 2018 21:23 EEST

Martin Beneš
 Field "Automatic Display: After display" display before/over "read more - introtext". Is it possible to view only in the article itself, not in the blog?

Lefteris Kavadas
Hi,

You can use the following code in the article layout override:
<?php if (isset($this->item->jcfields[1])): ?>
<?php echo FieldsHelper::render('com_content.article', 'field.render', array('field'=> $this->item->jcfields[1])); ?>
<?php endif; ?>


Note that you need to replace the number 1 with the ID of the field you want to render. You can find this at the administration in the fields manager. Using the above code and setting "Automatic Display" to "Do not automatically display" you can render the custom field in the exact place you want.

An other option would be to insert the gallery in the article text and don't use a custom field.

Regards

Martin Beneš
Hi Lefteris,
it works well.
Thanks.
Martin

Lefteris Kavadas
You are welcome.

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review