Help with lavalamp jQuery plugin

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.
8/7/2011 8:32:11 AM
Gravatar
Total Posts 18439

Re: Help with lavalamp jQuery plugin

If your goal is to not show the child items then set MaxDataBindDepth="2" in your theme.skin, this will bind the root node (which is not shown) and the first level which is shown.

Hope that helps,

Joe

8/7/2011 9:43:20 AM
Gravatar
Total Posts 51

Re: Help with lavalamp jQuery plugin

Hi Joe,

Thanks for quick reply. To better understanding see lavalamp example in this link. Please try third item. If you click it, you see the child page/pages in the menu.

Best,
Erhan
 

8/7/2011 12:19:05 PM
Gravatar
Total Posts 18439

Re: Help with lavalamp jQuery plugin

Hi Erhan,

Did you try my previous suggestion?

<portal:mojoTreeView runat="server" SkinID="LavaLamp"
            ContainerCssClass=""
            RootUlCssClass="lavaLampWithImage"
            RenderLiCssClasses="true"
            RenderAnchorCss="true"
            LiCssClass=""
            LiRootExpandableCssClass=""
            LiRootNonExpandableCssClass=""
            LiNonRootExpnadableCssClass=""
            LiSelectedCssClass="current"
            LiChildSelectedCssClass=""
            LiParentSelectedCssClass=""
            AnchorCssClass=""
            AnchorSelectedCssClass=""
            ExpandDepth="0"
      ShowExpandCollapse="false"
   PopulateNodesFromClient="false" 
MaxDataBindDepth="2"
         />

If it still has the problem with 2 then try with 1.

Hope that helps,

Joe

8/7/2011 2:31:28 PM
Gravatar
Total Posts 51

Re: Help with lavalamp jQuery plugin

Hi Joe,

I tried MaxDataBindDepth="2" and then with "1". Sorry, but this didn't help.

Thanks,
Erhan

8/8/2011 8:40:40 AM
Gravatar
Total Posts 18439

Re: Help with lavalamp jQuery plugin

Hi Erhan,

Try this:

<portal:SiteMenu ID="SiteMenu1" runat="server" MenuSkinID="LavaLamp" UseTreeView="true" TreeViewExpandDepth="0" HideMenuOnSiteMap="false" ></portal:SiteMenu>

It should work.

Best,

Joe

8/8/2011 8:55:58 AM
Gravatar
Total Posts 67

Re: Help with lavalamp jQuery plugin

I'm only showing the top level with this:

<portal:SiteMenu id="SiteMenu1" runat="server"
              UseTreeView="false" UseSpanInLinks="true" HideMenuOnSiteMap="false"
           Direction="Horizontal" TopLevelOnly="true"></portal:SiteMenu>

I have multiple navigation levels, and this works just fine.

8/8/2011 9:46:54 AM
Gravatar
Total Posts 51

Re: Help with lavalamp jQuery plugin

Hi Joe,

Thanks again for great support. MaxDataBindDepth="0" solved my problem.

 

@drewbeta

Thanks for your interest. Your solution is OK and works for mojo and Artisteer menus. But this was a lavalamp menu (jQuery plugin) with MenuSkinID="LavaLamp".

 

Best,
Erhan

8/10/2011 5:01:07 AM
Gravatar
Total Posts 51

Re: Help with lavalamp jQuery plugin

Hi Joe,

I wanted to use another jQuery plugin menu therefore I tried making settings in theme skin (menu structure and mojoTreeView is below). What I can not achieve is;

1. id="menu" for div element.

2. To create span for links. I tried hopeless UseSpanInLinks="true" by <portal:SiteMenu...

Thanks as always,
Erhan

 

<portal:mojoTreeView runat="server" SkinID="menuCustom"
            ContainerCssClass=""
            RootUlCssClass="menu"
            RenderLiCssClasses="true"
            RenderAnchorCss="true"
            LiCssClass=""
            LiCssClassWithChildren="parent"
            LiRootExpandableCssClass="parent"
            LiRootNonExpandableCssClass=""
            LiNonRootExpnadableCssClass=""
            LiSelectedCssClass=""
            LiChildSelectedCssClass=""
            LiParentSelectedCssClass=""
            AnchorCssClass=""
            AnchorSelectedCssClass=""
         />

 

<div id="menu">
    <ul class="menu">
        <li><a href="#" class="parent"><span>Home</span></a>
            <div><ul>
                <li><a href="#" class="parent"><span>Sub Item 1</span></a>
                    <div><ul>
                        <li><a href="#" class="parent"><span>Sub Item 1.1</span></a>
                            <div><ul>
                                <li><a href="#"><span>Sub Item 1.1.1</span></a></li>
                                <li><a href="#"><span>Sub Item 1.1.2</span></a></li>
                            </ul></div>
                        </li>
                        <li><a href="#"><span>Sub Item 1.2</span></a></li>
                        <li><a href="#"><span>Sub Item 1.3</span></a></li>
                        <li><a href="#"><span>Sub Item 1.4</span></a></li>
                        <li><a href="#"><span>Sub Item 1.5</span></a></li>
                        <li><a href="#"><span>Sub Item 1.6</span></a></li>
                        <li><a href="#" class="parent"><span>Sub Item 1.7</span></a>
                            <div><ul>
                                <li><a href="#"><span>Sub Item 1.7.1</span></a></li>
                                <li><a href="#"><span>Sub Item 1.7.2</span></a></li>
                            </ul></div>
                        </li>
                    </ul></div>
                </li>
                <li><a href="#"><span>Sub Item 2</span></a></li>
                <li><a href="#"><span>Sub Item 3</span></a></li>
            </ul></div>
        </li> 

........................

8/10/2011 11:30:50 AM
Gravatar
Total Posts 18439

Re: Help with lavalamp jQuery plugin

Hi Erhan,

To get spans inside the links you would have to use Menu instead of treeview

<portal:mojoMenu runat="server" SkinID="SiteMenu"
   InnerSpanMode="SingleSpan"
 
  />

I don't have a way for you to specify the id on the container div, so you would have to view the rendered html source and use the id you see there.

Best,

Joe

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