Can I extract a image fields only get image's url in module?

More
10 years 2 months ago #45790 by despair
I can read image's url in templates.
But I can not get the url from a image fields in FC module.

I get some fields value at difference position in module.
like this
Code:
<?php foreach ($item->fields as $k => $field) : ?> <?php if ( !in_array($field->name, $categories) ) continue; ?> <?php echo $field->display; ?> <?php endforeach; ?>
Thanks everyone~

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

More
10 years 2 months ago #45814 by ggppdk
Hello

i think it maybe better to expose the field object fully to the template of the module, rather than copying some parts of it

this will be in next revision

Regards


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