Rank: Member
Joined: 2/6/2008(UTC) Posts: 55
|
When a product has been assigned a type, and there is more then one property, and at least one of those properties has not been marked for "Display on Site?" , the ProductTypeDisplay.ascx does not correctly add the "ALT" class to the <li> tag. Fix is below. Anything i added has been marked bold and italicized. Code: [color=#0000ff][color=#0000ff][2]Dim[/color][/2][/color][color=#0000ff][color=#0000ff][2]As[/color][/2][/color][color=#0000ff][color=#0000ff][2]Integer[/color][/2][/color]</I></B>[color=#0000ff][color=#0000ff][2]For[/color][/2][/color][color=#0000ff][color=#0000ff][2]As[/color][/2][/color][color=#0000ff][color=#0000ff][2]Integer[/color][/2][/color][color=#0000ff][color=#0000ff][2]To[/color][/2][/color][color=#0000ff][color=#0000ff][2]If[/color][/2][/color][color=#0000ff][color=#0000ff][2]Then</P>[/color][/2][/color][color=#0000ff][color=#0000ff][2]Dim[/color][/2][/color][color=#0000ff][color=#0000ff][2]As[/color][/2][/color][color=#0000ff][color=#0000ff][2]String[/color][/2][/color][color=#008000][color=#008000][2]'If text property is empty, do not display </P>[/color][/2][/color][color=#0000ff][color=#0000ff][2]If[/color][/2][/color][color=#0000ff][color=#0000ff][2]Not[/color][/2][/color][color=#0000ff][color=#0000ff][2]Then</P>[/color][/2][/color][color=#0000ff][color=#0000ff][2]If[/color][/2][/color][color=#0000ff][color=#0000ff][2]String[/color][/2][/color][color=#0000ff][color=#0000ff][2]Then</P>[/color][/2][/color][color=#0000ff][color=#0000ff][2]Continue[/color][/2][/color][color=#0000ff][color=#0000ff][2]For</P>[/color][/2][/color][color=#0000ff][color=#0000ff][2]End[/color][/2][/color][color=#0000ff][color=#0000ff][2]If</P>[/color][/2][/color][color=#0000ff][color=#0000ff][2]End[/color][/2][/color][color=#0000ff][color=#0000ff][2]If[/color][/2][/color][color=#0000ff][color=#0000ff][2]If[/color][/2][/color][color=#0000ff][color=#0000ff][2]Not[/color][/2][/color][color=#0000ff][color=#0000ff][2]Then</P>[/color][/2][/color][color=#0000ff][color=#0000ff][2]True</P>[/color][/2][/color][color=#a31515][color=#a31515][2]"<ul class=""typedisplay"">"[/color][/2][/color][color=#0000ff][color=#0000ff][2]End[/color][/2][/color][color=#0000ff][color=#0000ff][2]If</P>[/color][/2][/color][color=#0000ff][color=#0000ff][2][2] [/color][color=#008000][b][i]'New fix[/i][/b] [/color][/2][/color][color=#0000ff][color=#0000ff][2]If[/color][/2][/color][color=#0000ff][color=#0000ff][2]Mod[/color][/2][/color][color=#0000ff][color=#0000ff][2]Then</P>[/color][/2][/color]</I></B>[color=#a31515][color=#a31515][2][b][i]"<li>"[/i][/b][/color][/2][/color][color=#0000ff][color=#0000ff][2][b][i]Else[/i][/b]</P>[/color][/2][/color][color=#a31515][color=#a31515][2][b][i]"<li class=""alt"">"[/i][/b][/color][/2][/color][color=#0000ff][color=#0000ff][2]End[/color][/2][/color][color=#0000ff][color=#0000ff][2]If</P>[/color][/2][/color]</I></B>[color=#008000][color=#008000][2][b][i]'Original Version[/i][/b]</P>[/color][/2][/color][color=#008000][color=#008000][2][b][i]'If i Mod 2 = 0 Then[/i][/b]</P>[/color][/2][/color][color=#008000][color=#008000][2][b][i]' sb.Append("<li>")[/i][/b]</P>[/color][/2][/color][color=#008000][color=#008000][2][b][i]'Else[/i][/b]</P>[/color][/2][/color][color=#008000][color=#008000][2][b][i]' sb.Append("<li class=""alt"">")[/i][/b]</P>[/color][/2][/color][color=#008000][color=#008000][2][b][i]'End If[/i][/b]</P> [/color][/2][/color][/2]
[color=#0000ff][color=#0000ff][2] [/color][/2][/color][color=#a31515][color=#a31515][2]"<span class=""productpropertylabel"">"[/color][/2][/color][color=#a31515][color=#a31515][2]"</span>"[/color][/2][/color][color=#a31515][color=#a31515][2]"<span class=""productpropertyvalue"">"[/color][/2][/color][color=#a31515][color=#a31515][2]"</span>"[/color][/2][/color][color=#a31515][color=#a31515][2]"</li>"[/color][/2][/color][color=#0000ff][color=#0000ff][2]End[/color][/2][/color][color=#0000ff][color=#0000ff][2]If</P>[/color][/2][/color][color=#0000ff][color=#0000ff][2]Next</P>[/color][/2][/color][url=http://localhost/DyersOnline/BVModules/Controls/ProductTypeDisplay.ascx][/url]
|
|
|
|
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.