Help remove ContainerElement

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
1/8/2014 11:48:09 PM
Gravatar
Total Posts 1

Help remove ContainerElement

I used 'ChildSiteMap' but I want remove "ContainerElement" only render ul tag and il tag, help me?

1/12/2014 8:06:40 AM
Gravatar
Total Posts 123
/Mats Lillnor

Re: Help remove ContainerElement

Check that you have the following line in layout.master under <body>

    <asp:SiteMapDataSource ID="ChildPageSiteMapData" runat="server" ShowStartingNode="false" />

 

/Mats

1/14/2014 10:16:03 AM
Gravatar
Total Posts 18439

Re: Help remove ContainerElement

If you look in the theme.skin file of your skin you may have a settings something like this:

<portal:mojoTreeView runat="server" SkinID="ChildSiteMap"
    ContainerCssClass="AspNet-TreeView"
        
    />

you could change it like this:

<portal:mojoTreeView runat="server" SkinID="ChildSiteMap"
    ContainerElement=""
        
    />

the default value for ContainerElement is div so setting it to empty string should remove it.

You must sign in to post in the forums. This thread is closed to new posts.