• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Taylor
#1 Posted : Sunday, July 29, 2007 1:10:23 PM(UTC)
Taylor

Rank: Member

Joined: 7/15/2004(UTC)
Posts: 368

Might not be a theme question... but in the Detailed List category template there is a <br /> between the <span> and <span class="alt"> I can remove the spacing with the stylesheet, but I would rather remove that tag completely. Anyone know where to find it? I looked in the category.aspx and category.aspx.vb page but I'm coming up blank.

Here's how it renders:

Code:
</div>
</span><br /><span class="alt">

<div class="record">
Cliff
#2 Posted : Monday, July 30, 2007 3:01:44 AM(UTC)
Cliff

Rank: Member

Joined: 5/24/2004(UTC)
Posts: 4,147

I can't tell where it's coming from. Is it possible that the DataList is placing it there? It isn't even a proper XHTML line break in my local example, no closing slash.

Not to mention those DIVs are wrapped in SPANs, for cryin' out loud.
Taylor
#3 Posted : Monday, July 30, 2007 8:33:11 AM(UTC)
Taylor

Rank: Member

Joined: 7/15/2004(UTC)
Posts: 368

exactly! I thought that using a span instead of div was odd and also it's odd that the <span> before and after the <span class="alt"> has no class tag at all (BV2004 was class="Item" and class="AlternateItem").

I can get around all of that, but the break tag isn't in a span or div anywhere so I have to wipe out all the BR's within <div id="categorydetailedlisttemplaterecords"> and then go back and re-assign the BR value in case it's ever used in the short description. Like I said, I can get around it but I would like to know where to fix it.

Thanks for backing me up Cliff... I just thought I was missing something when I kept coming up blank in the search for it.
[email protected]
#4 Posted : Monday, July 30, 2007 12:05:31 PM(UTC)
everett@bvsoftware.com

Rank: Member

Joined: 3/8/2007(UTC)
Posts: 139

Hey Wanita and Cliff,

Cliff is correct, the DataList is creating the "span" and "br" tags (that is why the "br" isn't even properly formatted). I will try to get this into a Repeater or something else so that you won't have to worry about the spans being created.

Thanks,
Everett Comstock

BV Software
Taylor
#5 Posted : Monday, July 30, 2007 12:24:25 PM(UTC)
Taylor

Rank: Member

Joined: 7/15/2004(UTC)
Posts: 368

Nice! Thanks Everett :)
[email protected]
#6 Posted : Friday, August 3, 2007 4:11:15 PM(UTC)
everett@bvsoftware.com

Rank: Member

Joined: 3/8/2007(UTC)
Posts: 139

Hey Wanita and Cliff,

Give this Category Template a try. This template replaces the asp:DataList with an asp:Repeater. It will not output the span and break tags that were causing you grief. Please notice the AlternatingItemTemplate. You will need to update the CSS class's if you are using alternating styles on your page. It's a little bit more work to do this, but much more flexible.

Thanks,
File Attachment(s):
Repeater Detailed List.zip (8kb) downloaded 231 time(s).

You cannot view/download attachments. Try to login or register.
Everett Comstock

BV Software
Taylor
#7 Posted : Friday, August 3, 2007 4:31:02 PM(UTC)
Taylor

Rank: Member

Joined: 7/15/2004(UTC)
Posts: 368

Works perfect! Thanks for taking the time, Everett. Quick question - will this replace the 1st Detail List, or should I treat it as an additional category template?
[email protected]
#8 Posted : Monday, August 13, 2007 3:35:19 PM(UTC)
everett@bvsoftware.com

Rank: Member

Joined: 3/8/2007(UTC)
Posts: 139

Hey Wanita,

I would just use it as an additional category template for the sake of flexibility. The whole "two is better than one" theory. However, to do this properly, you will have to update the file references on each page (aspx and aspx.vb) if you want them to compile in Visual Studio without throwing errors.

Thanks,
Everett Comstock

BV Software
[email protected]
#9 Posted : Monday, August 13, 2007 3:40:59 PM(UTC)
everett@bvsoftware.com

Rank: Member

Joined: 3/8/2007(UTC)
Posts: 139

Here is an archive with the file references updated.

Thanks,
File Attachment(s):
Repeater Detailed List.zip (7kb) downloaded 238 time(s).

You cannot view/download attachments. Try to login or register.
Everett Comstock

BV Software
Taylor
#10 Posted : Wednesday, January 23, 2008 9:42:15 AM(UTC)
Taylor

Rank: Member

Joined: 7/15/2004(UTC)
Posts: 368

Hey Everett! Any chance you can update this to SP 3.1 for me?
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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012