[MT-users] How to upload pics into a blog

David Jennings david at alchemi.co.uk
Wed Dec 24 12:37:27 GMT 2003


I use the MT 'upload file' feature for all my pics and it works fine; 
it even creates a thumbnail of the image for you if you want one, and 
auto-generates all the HTML (except the ALT tags obviously).

I've added some classes to my stylesheet so that I can wrap text 
round the image, and align it left or right - feel free to copy this 
if you like (I'm sure I did!):

	.floatleft {
	float: left;
	margin-top: 0px;
	margin-bottom: 10px;
	margin-left: 0px;
	margin-right: 10px;
	}

	.floatright {
	float: right;
	margin-top: 0px;
	margin-bottom: 10px;
	margin-left: 10px;
	margin-right: 0px;
	}

For an example of this, including clickable thumbnail, see 
http://davidjennings.info/archives/mus/kafka_lite.html

d

>[Thanks to Donato for basis of this.]
>
>In your blog insert the XHTML for an image:
>
>   <img src="http://your url/your sub-directory/image_name.image_extension"
>   alt="Some description" target="_new" border="0" width="??" height="??" />
>
>[Donato: did you use FTP to upload the image? Did you put it straight
>into the archives dir?]
>
>Few points: note the /> at the end - this is XHTML which MT uses. If you
>know the width/height it's a good idea to put them in to help the page
>render more quickly (once the image is online, in Mozilla you can right-
>click an image, get its properties and see the W/H). The alt attribute
>is _strongly_ recommended for accessibility, phone browsers, etc.
>
>IMPORTANT: File names AND extensions must be in the same case as the
>files. (Unix is case-sensitive.)
>
>To get image on side bar insert the same code in the "Main Index
>template", below code that says <div id="links">
>
>HTH,
>Paul
>
>
>--
>Paul Makepeace ................................  http://paulm.com/ecademy
>
>"What is free will? Planck's constant."
>    -- http://paulm.com/toys/surrealism/
>
>_______________________________________________
>MT-users mailing list
>MT-users at paulm.com
>http://realprogrammers.com/mm/listinfo/mt-users




More information about the MT-users mailing list