alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5> |
RDFW bunker |
> alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5> |
RDFW bunker |
> alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5> |
RDFW bunker |
The answer is quite simple. Create a body field in your Article Type that will only contain the image that goes into the section listing. Let's say we call this variable 'sectionimage'. Then all you need to add in the section listing to display the image is:
<!** print article sectionimage>
This will then generate the HTML code as saved in the database. And in our case that means it will create the image tag including the image. You could even generate a little subtitle for the image in this field when entering the article text and images.
</snip>
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?
doug
Mugur Rus <mugur1973@yahoo.com> 08/02/2005 10:47 PM | To: campsite-support@campware.org cc: Subject: Re: [campsite-support] phantom <table> tags |
> > > alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5> |
RDFW bunker |
src="/cgi-bin/get_img?NrArticle=2&NrImage=1" > > > alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5> |
RDFW bunker |
Mugur Rus <mugur1973@yahoo.com> 08/02/2005 11:07 PM | To: campsite-support@campware.org cc: Subject: Re: [campsite-support] phantom <table> tags |
> src="/cgi-bin/get_img?NrArticle=2&NrImage=1" > > > > > alt="RDFW bunker" BORDER=0 HSPACE=5 VSPACE=5> |
RDFW bunker |
It looks like you're new here. If you want to get involved, click one of these buttons!