Mugur Rus writes:
Yes, this is an old example but it's not the only way and maybe not the best way.
> What I want to do is display the article's image on the front page - not
> its text - if the 'display on front page' checkbox is ticked. So I presume
> the template language statement would include first an If statement for
> whether the article is on the front page, but how do I tell the parser the
> number of the photo, when this will be changing?
<!** list article onfrontpage is on>
<!** if image 100>
<img src="/cgi-bin/get_img?<!** urlparameters image 100>">
<!** endif>
<!** endlist>
Now, you'll have to come up with a convention like: "all images that are to be displayed on the front page will have the number 100".
The image number is like a label, it's just that you can't name them with words but you have to use numbers. Think of it this way: number 1 is for displaying together with article short intro on the front page, number 10 is thumbnail for headlines (when you display a list of article headlines in a RSS feed), 20 and up are for use in article body fields.