Image not shown in Custom Template

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
mpol_ch
User
Posts: 896
Location: Switzerland

Image not shown in Custom Template

Post 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


mobhar
User
Posts: 11905

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


danielc
User
Posts: 1599

Post 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?


mpol_ch
User
Posts: 896
Location: Switzerland

Post 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


danielc
User
Posts: 1599

Post 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?


mobhar
User
Posts: 11905

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


Post Reply