#196 – Field "Automatic Display: After display" display before/over "read more".

Status: Closed - Category: Showtime Image Gallery
 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?
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
 
Hi Lefteris,
it works well.
Thanks.
Martin
You are welcome.
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

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 .

Note: Our support team is currently on vacation, so please anticipate slightly longer response times. Thank you for your understanding!

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