Menus with children

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/11/2011 3:22:23 AM
Gravatar
Total Posts 28

Menus with children

Hi can someone please help me with this:

I have created a menu with drop downs but want to redirect the Parent menu name to one of its children. These are my settings atm and seems the only way i can do it is if i add the url of the child page i want to redirect it to which seems strange. I tried to add /laptops-advanced-search.aspx instead of the url but this does not work. It still takes me to the page www.mysite.com/laptops.aspx

<div class="AspNet-Menu-Horizontal" id="ctl01_SiteMenu1_ctl00">

  <ul class="art-menu AspNet-Menu">

   <li class="AspNet-Menu-WithChildren">

    <a href="http://www.mysite.com/laptops/advanced-search.aspx" class="AspNet-Menu">

     <span class="l"></span><span class="r"></span><span class="t">Laptops</span></a>

    <ul>

     <li class="AspNet-Menu-Leaf">

      <a href="/laptops-all.aspx" class="AspNet-Menu">

       <span class="l"></span><span class="r"></span><span class="t">All laptops</span></a>

     </li>

     <li class="AspNet-Menu-Leaf">

      <a href="/new-laptops.aspx" class="AspNet-Menu">

       <span class="l"></span><span class="r"></span><span class="t">New laptops</span></a>

     </li>

     <li class="AspNet-Menu-Leaf">

      <a href="/ex-lease-laptops.aspx" class="AspNet-Menu">

       <span class="l"></span><span class="r"></span><span class="t">ex lease laptops</span></a>

     </li>

     <li class="AspNet-Menu-Leaf">

      <a href="/laptops/advanced-search.aspx" class="AspNet-Menu">

       <span class="l"></span><span class="r"></span><span class="t">Advanced search</span></a>

     </li>

    </ul>

3/14/2011 7:37:46 AM
Gravatar
Total Posts 18439
3/14/2011 7:50:53 AM
Gravatar
Total Posts 28

Re: Menus with children

perfect, thanks joe

3/14/2011 8:50:28 AM
Gravatar
Total Posts 28

Re: Menus with children

Tried that method but is no good either as it doesnt actually divert you to the child page like a url would.

And if you add the mapping like this is the parent page settings /this-is-where-i-want-to-point.aspx instead of www.xyz.com/this-is-where-i-want-to-go.aspx

It shows an error saying you cant point two pages in the same nav menu to the same page, which is exactly what we are trying to do.

This issue is that if we add a url to point to the page, it is bad for seoing..

Below is what we are trying to achieve:

 

<li class="AspNet-Menu-WithChildren">

    <a href="/page3.aspx" class="AspNet-Menu">

     <span class="l"></span><span class="r"></span><span class="t">New Vehicles</span></a>

    <ul>

     <li class="AspNet-Menu-Leaf">

      <a href="/page2.aspx" class="AspNet-Menu">

       <span class="l"></span><span class="r"></span><span class="t">All new cars</span></a>

     </li>

     <li class="AspNet-Menu-Leaf">

      <a href="/page3.aspx" class="AspNet-Menu">

       <span class="l"></span><span class="r"></span><span class="t">Brand new cars</span></a>

 

google spider will like that much better

3/14/2011 8:56:16 AM
Gravatar
Total Posts 18439

Re: Menus with children

The article does not say use the same friendly url on the parent page as the child page, it says use the same real url with the same pageid. The friendly urls must be different but they can point to the same page. 

However this would result in the url of the parent  page showing the same content as the url for the child page so this would also not be best for SEO.

The javascript approach is probably the best for this.

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