Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-01-14 19:07:11

jodeci
Member
From: Taipei
Registered: 2008-01-13
Posts: 38
Website

[textile] invalid img output

Hi, I’ve settled for raw <img>s for now,
but is it possible to add width and height attributes to !imageurl(alt)! at all?
This invalidity really bothers the geek in me.

Offline

#2 2008-01-14 19:39:29

wet
Developer Emeritus
From: Schoerfling, Austria
Registered: 2005-06-06
Posts: 3,323
Website Mastodon

Re: [textile] invalid img output

This would require to re-calculate the attributes with every page view, even for external images, an attempt to grind your server to a screaming halt. If you wanted to have size attributes for your local images, try <txp:image /> or some of the image handling plugins like upm_img_popper.

To your inner geek: Neither height nor width are mandatory attributes per W3C.

Offline

#3 2008-01-16 09:05:11

jodeci
Member
From: Taipei
Registered: 2008-01-13
Posts: 38
Website

Re: [textile] invalid img output

Thanks Robert, think I’ll take the <txp:image> path. Still not 100% comfortable about 777 folders (had bad experience) though…

Offline

Board footer

Powered by FluxBB