Re: phantom <table> tags
Mugur Rus <[email protected]> Tue, 2 Aug 2005 13:47:04 -0700 (PDT)
| Newsgroups | gmane.comp.cms.campsite.general |
|---|---|
| Message-ID | <[email protected]> |
Don't display images from article fields, instead use template language:
<!** if image [image_nr]>
<img src=3D"/cgi-bin/get_img?<!** urlparameters [image_nr]>">
<!** endif>
See the manual for more details.
Mugur
--- [email protected] wrote:
> Hi all,
>=20
> I've run into what may be an undocumented feature, but wanted to ask ab=
out=20
> it anyway.=20
>=20
> I'm on 2.2.2 (expecting to upgrade to 2.3.0 any minute now) and want to=
=20
> display the image from an article. The image field is called=20
> 'teaser_image'.
>=20
> The template looks like this:
>=20
> <!** List Article OnFrontPage Is On>
> <!** Print Article teaser_image>
> <!** EndList>
> <!** endlocal>
>=20
> The output, however, includes an entire table for the image:
>=20
> <table border=3D0 cellspacing=3D0 cellpadding=3D0 align=3Dnone>
> <tr><td align=3D"center"><img src=3D"/cgi-bin/get_img?NrArticle=3D2&NrI=
mage=3D1"=20
> alt=3D"RDFW bunker" BORDER=3D0 HSPACE=3D5 VSPACE=3D5></td></tr>
> <tr><td align=3D"center" class=3D"caption">RDFW bunker</td></tr>
> </table>
>=20
> Seeing as I'm trying to avoid tables at all costs, I want to suppress a=
ll=20
> this junk. But how?
>=20
> doug
=09
____________________________________________________
Start your day with Yahoo! - make it your home page=20
http://www.yahoo.com/r/hs=20
=20