Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-03-17 05:46:03

myhairyhand
New Member
Registered: 2008-02-26
Posts: 8

Thumbnail not appearing Internet explorer

I have a thumbnail image on a page – Its a link to another section of the website. It shows up in all browsers except Internet Explorer. It just does not show. Is this a known issue – and is anyone aware of a solution?
Thanks
Robert

Offline

#2 2008-03-17 06:00:26

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Thumbnail not appearing Internet explorer

No, it’s not a known issue. Please provide a URL or HTML output.

Offline

#3 2008-03-17 06:40:32

myhairyhand
New Member
Registered: 2008-02-26
Posts: 8

Re: Thumbnail not appearing Internet explorer

Thanks Jon,
The URL is http://web1.werrington-p.schools.nsw.edu.au/Cool-Stuff
The article at the top titled “Swimming Carnival Reports By Students” has a thumbnail. I placed it there by putting this in the article

<a href=”/swimcarn08”<txp:thumbnail id=“39” /></a>Click the thumbnail picture on the left to view some amazing Reports about our 2008 Swimming Carnival

It works on every browser but Internet Explorer. If it was some kind of padding issue it is strange that the page didn’t just get its formatting mucked up…(I think)

Last edited by myhairyhand (2008-03-17 06:41:44)

Offline

#4 2008-03-17 06:54:28

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Thumbnail not appearing Internet explorer

Hehe, actually IE is this time right & correct, coz there is one little, but major fault in the code.

<a href="/swimcarn08"<img src="http://web1.werrington-p.schools.nsw.edu.au/images/39t.jpg" alt="" /></a>

As you can see the a tag doesn’t really end, it misses the ending >. This will fix it:

<a href="/swimcarn08"><txp:thumbnail id="39" /></a>

Last edited by Gocom (2008-03-17 06:56:48)

Offline

#5 2008-03-17 07:06:25

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Thumbnail not appearing Internet explorer

Gocom’s correct – IE’s finally strict! Validate your HTML and run your site in debugging mode. You’ve also got an extraneous </txp:permlink> too.

As a sidenote, check out <txp:article_image thumbnail="1"/> and <txp:permlink/> at the TextBook. Those two tags will make your template a lot more flexible.

PS: Jon != Jon-Michael :).

Last edited by jm (2008-03-17 07:08:13)

Offline

#6 2008-03-17 07:17:25

myhairyhand
New Member
Registered: 2008-02-26
Posts: 8

Re: Thumbnail not appearing Internet explorer

Thanks Gocom and JM,
I was thrown off looking at my code when it worked with other browsers. Much easier to swear at IE rather than rechecking the code. Sorry.
I just rushed getting this linking to another section. Other parts of that page use <txp:article_image thumbnail=“1”/> and <txp:permlink/> to link to full articles from the except and thumbnail – but if I want to link to another section I thought I would need to do it by putting the code in the article.
Is there a better and easier way?
Thanks again for your time.

Offline

#7 2008-03-17 07:45:45

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: Thumbnail not appearing Internet explorer

You can create a section link with <txp:section name="section_name">link to a section</txp:section> (docs).

Offline

#8 2008-03-17 08:04:22

myhairyhand
New Member
Registered: 2008-02-26
Posts: 8

Re: Thumbnail not appearing Internet explorer

Thanks again jm. Looks like I have some reading to do.
Much appreciated

Cheers
Robert

Offline

Board footer

Powered by FluxBB