Tips and Tricks

The Tips and Tricks Section is intended only for advanced users, who have experience working with templates, TemplateCells, and Placeholders.


In order to further customize the placement of the uploaded image on your News Article Details pages, you can add the following TemplateCells to your /templates/_article.html file.

The following TemplateCell, "image", will allow you to override the Setup Options "Force published image size" and "Align images". Instead of having the program automatically generate the $image$ placeholder, you can specify the html which will be used. This Cell will only be used if an image exists.

The following code shows you how to link a smaller image to show its full size:

<!-- templatecell : image -->
<a href="$image$"><img src="$image$" width="40" border="0" align="left"></a>
<!-- /templatecell : image -->



The "noimage" TemplateCell, much like the "image" cell, overrides the default html used to display an image if no image exists for that record. The default is that absolutely nothing is published for the $image$ placeholder. By creating this TemplateCell, you can change this.

The following code shows you how to display a fictional "Sorry, no picture available" image:

<!-- templatecell : noimage -->
<img src="/images/noimage.gif">
<!-- /templatecell : noimage -->