Display image if field is not empty

5 years 7 months ago #41660 by ggppdk

please look at your code carefully,
and if you use print_r on various variables, you will see what is available:

Most notably do:
echo "<pre>" . print_r($this->item, true) . "</pre>";
on the ITEM variable to see what is available

it is cumbersome for us to look at long listings of code, particularly since we ... can not run it locally ;)

Also we said above that this wrong, but you still have it in your code:

does not exist !

instead use [c:del0dl2u]$this->item->fields[&#39;web&#39;]->display[/c:del0dl2u] for item view
and [c:del0dl2u]$this->items[$i]->fields[&#39;web&#39;]->display[/c:del0dl2u] for category view


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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.