Afficher le contenu d'un champ image

More
13 years 11 months 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.

More
13 years 9 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:
Code:
<?php echo $item->fields['field22']->display; ?>

Use:
Code:
<?php echo $item->fields['field22']->display_small_src; ?>
or:
Code:
<?php echo $item->fields['field22']->display_medium_src; ?>
or:
Code:
<?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
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save