how get specific image size, from field, via php?

More
11 years 11 months ago #31279 by pabro
Thank you for your reply!

with
Code:
$items[$i]->fields[$img_field_name]['originalname'];
i get only an error message "Cannot use object of type stdClass as array ...";

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

More
11 years 11 months ago #31283 by ggppdk
Ok yes it is
Code:
$img_field_name = 'field11'; $img_field_value = @$items[$i]->fields[$img_field_name]->value[0]; if ($img_field_value) { $originalname= $img_field_value['originalname']; // output something }

i have corrected it above


-- 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...

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

More
11 years 11 months ago #31286 by micker
maybe explain in faq ? ;)

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
11 years 11 months ago #31291 by ggppdk
actually a developer would do:
Code:
echo "<pre>"; print_r( $items[$i]->fields['field27'] ); echo "</pre>";


-- 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...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.405 seconds
Save
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