Skip to main content
May 24, 2009
Question

cfmenu conflicts

  • May 24, 2009
  • 5 replies
  • 1887 views

I have successfully used cfmenu on a test page.  When I put the exact code in my site, it lists the items like bullet items rather than the horizontal menu.  Is anyone aware of any conflicts of code with cfmenu?  I've compared the two pages and they appear to be the same.

    This topic has been closed for replies.

    5 replies

    August 11, 2009

    Make sure you point your domain to the CFIDE directory or it won't work.

    Inspiring
    August 6, 2009

    Yep, since you have submenu items they will be generated vertically. To quote the manual "Submenus of both menu types are always arranged vertically". The question now is why they sometimes don't get generated vertically.

    August 6, 2009

    I don't understand that. Isn't that the point of cfmenu? To have submenus

    under the primary menu? Otherwise, why use cfmenu?

    Inspiring
    August 6, 2009

    Do you specifically code type="horizontal"? The only other thing it could be, since you are dynamically generating the pages, is there any chance you are generating a submenu? Submenus of both menu types are always arranged vertically.

    August 6, 2009

    I'm breaking the code down line-by-line and testing it right now.  Very

    strange - and probably an obvious problem.

    <cfmenu
    childstyle="text-decoration:none;"
    selectedfontcolor="##ffffff"
    selecteditemcolor="##cccccc"
    font="Arial, Helvetica, sans-serif"
    fontsize="16"
    name="testmenu"
    type="horizontal"
    bgcolor="##666666"
    fontcolor="##333333"
    >

    <cfif submenus.recordcount eq 0>
      <cfmenuitem display="#getmenus.menu#" href="/sites/dsp/#getmenus.sitelink#?menuid=#getmenus.menuid#" />
    <cfelse>

        <cfmenuitem display="#getmenus.menu#">
        <cfloop query="submenus">
        <cfmenuitem display="#submenus.menu#" href="/sites/dsp/#submenus.sitelink#?menuid=#submenus.menuid#" />
        <cfmenuitem divider="true" />
        </cfloop>
        </cfmenuitem>
       </cfif>

    </cfloop>
    </cfmenu>

    August 6, 2009

    Anyone have an answer to this?  The strange thing is that the menu works properly on some sites and doesn't on others.  I don't see any difference on my sites since they are dynamic and use the exact same code.

    Any suggestions?  Anyone else having trouble with cfmenu formatting like a bullet list?

    Inspiring
    May 24, 2009

    I would suspect that you have a CSS style in production that is changing your layout. I will see if I can find you the exact code to look for.