BV Commerce Forum
»
BV Commerce Support
»
General Support
»
SP 3.1 Bug Image Rotators have no alt tags
Rank: Member
Joined: 4/30/2007(UTC) Posts: 383
|
Exists in 3 as well and all versions. Using the image rotators in the wrong spot can cause SEO trouble as the alt tags are not being applied. <SPAN class=err_type> Line 44, Column 264: <SPAN class=msg>required attribute "alt" not specified.<CODE class=input>…ship.gif" style="border-width:0px;" /<STRONG title="Position where error was detected.">></b></a>[/code]</PRE> ✉ The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script " element and the "alt" attribute is required for the "img" element. Typical values for <CODE>type[/code] are <CODE>type="text/css"[/code] for <CODE><style>[/code] and <CODE>type="text/javascript "[/code] for <CODE><script >[/code].
|
|
|
|
Rank: Member
Joined: 4/30/2007(UTC) Posts: 383
|
Just following up, after spending a month going back and forth with Microsoft on our indexing troubles there it's apparent it's leaving the site immediately after encountering the 2nd image without an alt tag. The cached page results also show only the header.
Is there a hack/fix for this short of removing image rotators in the header? We're not actually rotating images, we just had static ads up there.
|
|
|
|
Rank: Member
Joined: 4/30/2007(UTC) Posts: 383
|
Marcus, any update on a fix for this? If there is none we have to eliminate our ads as Livebot refuses to index below the missing alt tags. Ridiculous on their part, but because of the location on our site it's doing a number.
Thanks
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
The problem is that they are using an asp:hyperlink to add the image, which is way too limited. The module should be rewritten for that reason, and also to better handle images that don't have links. The following edit should give you the alt attribute for now, though. Just replace the commented out code with the following - around line 24 - in \BVModules\ContentBlocks\Image Rotator\view.ascx.vb: Code:'Me.lnkMain.ImageUrl = Page.ResolveUrl(data.Setting1) Me.lnkMain.Controls.Add(New LiteralControl("<img src=""" & Page.ResolveUrl(data.Setting1) & """ alt=""" & data.Setting4 & """ />")) |
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
Just out of curiosity, where did you get the info that Livebot won't crawl the page because an image doesn't have an alt attribute? |
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
We will log this one as a bug and get it fixed. |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 4/30/2007(UTC) Posts: 383
|
Cliff, check email.
Justin,thanks...real minor but you guys did such a great job with the html the whole site might as well be compliant.
|
|
|
|
Rank: Member
Joined: 5/24/2004(UTC) Posts: 4,147
|
Justin, keep in mind that it should probably be a literal or something. Should especially render no anchor tags when the image isn't linked. An asp:hyperlink isn't a reliable way to add images period, much less images which might not be linked. |
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
Yes, asp hyperlink's can be troublesome in a few ways. I will add your comments to the bug report. |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 4/30/2007(UTC) Posts: 383
|
That does work by the way, thanks Cliff.
It's an issue with fresh sites coming to MSN. Let's face it, it's a joke that MSN would have trouble with sites for such a minor issue but it did/does/is in some cases. That little fix puts an alt tag in...
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.