I used custom Template in List Page with a field Picture. In a regular table, the preview thumnail is working. But when I used the custom, the image in not clickable.
Here is my code:
The image is not clickable because there is no “click” handler in your own code. You need to refer to the original HTML output and use the same HTML attributes. In fact, you better use the original HTML by {{{value pic}}}.
Read Custom Template Tags. As the important note says:
Remember that Custom Template is rearrangement of existing HTML fragments in the page. Most of the Custom Template Tags output HTML markup for the field in the page, NOT plain text or numeric values.If you add your custom attributes to the original HTML, it will be outputted in the original HTML first, and then the HTML fragments are rearranged (moved) according to your Custom Template (by JavaScript). You may press Ctrl + U in your browser (assume Chrome) and view the HTML source of the page, and check if your custom attributes are outputted.