[SOLVED] custom display of images

More
2 years 5 months ago #60222 by ggppdk
Hello

for universal module the actual content item are in:
...->_row
did you print

so inside the universal module template if the current content object is named "$item"
then use:
$item->_row->fieldvalues


-- 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
2 years 5 months ago #60230 by agata
It took me 2 days trying to unsuccessfully figure it out! Thanks, as ever.
Agata

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

More
2 years 1 month ago - 2 years 1 month ago #62874 by iamrobert
Universal Module:

You could just echo item title....
<a href="<?php echo $item->link; ?>" title="<?php echo $item->title; ?>">
<img src="<?php echo $item->_row->fields['logo']->{"display_small_src"}?>" alt="<?php echo $item->title; ?>">
</a>            
Last edit: 2 years 1 month ago by iamrobert.

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

More
2 years 1 month ago #62875 by agata
Hi, thanks but I didn't need just any alt in there, I needed the specific alt attribute of the image. Anyway, the issue has been resolved.
Best,
Agata

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.