Afficher le contenu d'un champ image

6 years 1 month ago #23558 by davids
Hello,

Is it possible to only get back the source of an image?

In fact I need to use jquery fancy box and I have to put the source image in my link.

Thanks

Please Log in or Create an account to join the conversation.

5 years 10 months ago #25574 by deck1187hw

davids wrote: Hello,

Is it possible to only get back the source of an image?

In fact I need to use jquery fancy box and I have to put the source image in my link.

Thanks


Hi Davids,
Try this:

Instead of:
<?php echo $item->fields['field22']->display; ?>

Use:
<?php echo $item->fields['field22']->display_small_src; ?>
or:
<?php echo $item->fields['field22']->display_medium_src; ?>
or:
<?php echo $item->fields['field22']->display_large_src; ?>

Miguel Puig
IT Engineer / UI Designer at FreebandTech LTD

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.