[SOLVED] custom display of images

More
9 years 11 months ago #60222 by ggppdk
Replied by ggppdk on topic custom display of images
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
9 years 11 months ago #60230 by agata
Replied by agata on topic custom display of images
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
9 years 7 months ago - 9 years 7 months ago #62874 by iamrobert
Replied by iamrobert on topic custom display of images
Universal Module:

You could just echo item title....
Code:
<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: 9 years 7 months ago by iamrobert.

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

More
9 years 7 months ago #62875 by agata
Replied by agata on topic custom display of images
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
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