XHTML Export Template

If you made a template for printing or HTML export, you can offer it to the others here. You can also ask here for help about these templates
Post Reply
Ajunne
Posts: 5
Joined: 2004-06-24 19:07:16

XHTML Export Template

Post by Ajunne »

Hi

I noticed the HTML export template in AMC was a little oldfashioned and still used non-standard HTML, so I took the liberty of changing it a bit and making it XHTML-compliant.

If you want to give it a try you can download it of my website. Comments are very welcome of course, preferably to my e-mail address: ajunne@gmail.com

Thanks and have fun
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

thanks
it is a shame for me that this template is not compliant, since I usually promote web standards :D (my site is fully XHTML 1.1 strict compliant)
I made this template long time ago and I never changed it :/
Ajunne
Posts: 5
Joined: 2004-06-24 19:07:16

Post by Ajunne »

Thanks :)

At the moment i use quite a big hack to make the img tag standards compliant (with an alt text and a slash to close the tag), so if you could change that in the catalog itself the ugly hack that makes images for movies mandatory could be removed and the standard appreciation images can be reused again.
Ajunne
Posts: 5
Joined: 2004-06-24 19:07:16

Post by Ajunne »

BTW: I'm planning on making a real XHTML 1.1 template sometime (when I have the time), using a decent layout with special div's for the movies, so that the code is a lot more logical.
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

Ajunne wrote: At the moment i use quite a big hack to make the img tag standards compliant
you mean doing that ?
<img src="$$ITEM_PICTUREFILENAME" alt="poster" />
it is not a so big hack... I added this $$ITEM_PICTUREFILENAME especially for those that want to write the IMG tag themselve

I should improve the HTML export anyway
Ajunne
Posts: 5
Joined: 2004-06-24 19:07:16

Post by Ajunne »

That's it yes, the problem is that when there is no image in the database, you get something like <img src="" alt ="poster" /> which is not correct. The image tag should completely be left out in that case...
antp
Site Admin
Posts: 9651
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Post by antp »

yes.
well, I'll modify the img tag for the next version ;)
Post Reply