get image name from image field database in flexicontent

More
11 years 1 month ago #51966 by ggppdk
Hello

$value after unserializing is an array:

array('originalname']=>'...', 'alt'=>'...', 'title']=>'...', ETC);



the PHP 'echo' only prints strings



you can use:
echo "<pre>";
print_r($value);
echo "</pre>";

to print an array


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
11 years 1 month ago #51968 by rafah
Hi,

Thanks a lot.Now array is showing correctly.But I only want to display image name.How to do this?

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

More
11 years 1 month ago #51969 by ggppdk
Hello

echo $value;


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star review. Thanks!

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

More
11 years 1 month ago #51970 by rafah
Hi,

Thankyou very much.I wasted my whole day on this.Dont know the basics. :(

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