Jump to content

IP.Pages how to insert an image in a custom field?

Featured Replies

Posted

Is there a way in IP.Pages to insert an image in "Display Custom Format" under Display Options for a select box? The following code doesn't work:

{{if ($value=='yes')}}
<img src="images/yes.png" title="" alt="" />
{{elseif ($value=='no')}}
<img src="images/no.png" title="" alt="" />
{{endif}}

With that I just get the html entry (<img src="images/yes.png" title="" alt="" />) displayed.

  • Author

Got it sorted out. I had to use |raw for the key in the output template.

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.