universal module - echo image srcset

More
2 years 6 months ago #80779 by tobajarrat
Hi @ all,
how to echo image srcset (of the selected image field) in the universal module loop

($list[$ord] as $item)


Thank you in advance.

Im using latest joomla and latest Flexicontent

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

More
2 years 6 months ago #80781 by iamrobert
The forum editor is broken for me at the moment.

So:

$item->image gives the image URL

So you can probably do something like this:
gist.github.com/iamrobert/39eb044f47a756d191ff062c58525a36

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

More
2 years 6 months ago #80782 by tobajarrat
Thank you for the quick response. I can use this.

BUT:
When I var_dump $item, i can see that all image dimensions are already in there. Furthermore the image-field output (as item field) uses already srcset.
How is it possible to use it inside the universal module.

P.S.: The forum editor is broken for me also. (inline style visability:hidden) no toolbar.

Thank you

Im using latest joomla and latest Flexicontent

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

More
2 years 6 months ago #80783 by micker
hello can you re test about forum editor .?
regards

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
2 years 6 months ago #80785 by iamrobert
Yes - its working.

You can echo the full field value:


Code:
echo FlexicontentFields::getFieldDisplay( $item->_row, 'img_field_name' );

replace img_field_name with your field alias.

 

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

More
2 years 6 months ago #80787 by tobajarrat
forum editor is working again!

Thanks to iamrobert, you helped me a lot!

Im using latest joomla and latest Flexicontent

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.283 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