Hi Guys,
I am hoping for a little guidance, I am not a backed developer, but I am getting there ever so slowly so forgive me for what may be a really daft questions.
When setting adding a menu using the NB_Store_CategoryMenu, I have a choice of a few menu types
Root, category, tree and accordion. So I have selected category (from what I can see there is little difference with root and category from a visual / display point of view)
I noted that when it generates its menu it does it in a table layout, this is not idea for a situation, I needed it in a div or unordered list.
Looking at the source I can and have changed the RepeatLayout to flow, this add's spans ok I can work with that, but its adding a
to each span. I need to rid the code of this I just cant find it.
CategoryMenu.ascx
<asp:DataList ID="dlCategoryMenu" runat="server" RepeatDirection="Horizontal"
RepeatLayout="Flow">
CategoryMenu.ascx.vb
Private Sub dlCategoryMenu_ItemDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DataListItemEventArgs) Handles dlCategoryMenu.ItemDataBound
Dim itemInfo As NB_Store_CategoriesInfo = CType(e.Item.DataItem, NB_Store_CategoriesInfo)
If e.Item.ItemType = ListItemType.Item OrElse e.Item.ItemType = ListItemType.AlternatingItem Then
Dim phL As PlaceHolder = DirectCast(e.Item.FindControl("phCatLink"), PlaceHolder)
If Not phL Is Nothing Then
phL.Controls.Add(New LiteralControl(BuildhtmlCatLink(_txtSubNameTemplate, _txtSubLeftHtml, _txtSubRightHtml, _txtSubSelectCSS, itemInfo)))
End If
End If
End Sub
Actual output
<span id="dnn_ctr412_CategoryMenu_dlCategoryMenu" class="Normal"><span>
<a href="http://dev/ShopAdmin/tabid/64/CatID/6/34sfd23r43rf.aspx" >34sfd23r43rf</a>
</span><br /~ ><span>
<a href="http://dev/ShopAdmin/tabid/64/CatID/4/4234et435.aspx" >4234et435</a>
</span><br /~ ><span>
<a href="http://dev/ShopAdmin/tabid/64/CatID/7/543543f435435.aspx" >543543f435435</a>
</span><br /~ ><span>
<a href="http://dev/ShopAdmin/tabid/64/CatID/5/fgfdgfdgdfg.aspx" >fgfdgfdgdfg</a>
</span><br /~ ><span>
<a href="http://dev/ShopAdmin/tabid/64/CatID/1/New.aspx" >New</a>
</span><br /~ ><span>
<a href="http://dev/ShopAdmin/tabid/64/CatID/3/wererwe.aspx" >wererwe</a>
</span></span>
NOTE: I know the BR is incorrect but that is done cause codeplex uses and hides them
This is the code generating each line item, there is no where that I can find to stop this line break being added. I'd love for anyone to be able to steer me in the right direction?