Page 1 of 1

Image not shown in Custom Template

Posted: Tue Aug 27, 2013 10:57 pm
by mpol_ch

Hallo
I am using the custom template under Code(Server Events, Client Scripts...). But my image is not showing. Should I use something specific for image fields?

thanks

<td colspan="1" rowspan="5" style="vertical-align: top;">{{{Bild}}}<br>
</td>

mpol_ch


Re: Image not shown in Custom Template

Posted: Wed Aug 28, 2013 9:34 am
by mobhar

It should work, as well as the demo project. You can refer to the demo project file, see "cars2" custom view in the project.


Re: Image not shown in Custom Template

Posted: Wed Aug 28, 2013 9:46 am
by danielc

Custom Template is simply re-arrangement of existing HTML parts in browser. You only need to set up [View Tag] as Image.

Does your image field show up properly if not in Custom Template?


Re: Image not shown in Custom Template

Posted: Wed Aug 28, 2013 4:40 pm
by mpol_ch

Hello mobhar and danielc

thanks for the feedback. It does not work in "Edit Page" view. But it works in "View Page"view.
It also works in normal view.

mpol_ch


Re: Image not shown in Custom Template

Posted: Thu Aug 29, 2013 9:26 am
by danielc

Check your browser to see if any javascript error. Does your code the same in Edit Page as View Page for Custom Template?

Are you using the latest version, v10.0.1?


Re: Image not shown in Custom Template

Posted: Thu Aug 29, 2013 12:03 pm
by mobhar

Not sure whether it is the limitation of Edit page for Custom Templates, but if you see on the Edit page of "cars2" from the demo project, the picture is shown properly.