This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Ryan17977
Ryan17977

I'm really enjoying using the static pages plugin so far. However the only problem I'm having is that the links for submenu items (when using the plugin's menu component) aren't working; i.e., the the second-level dropdown menu and links aren't displaying. The menu item shows the icon indicating there is a second dropdown available, but clicking on the item neither takes you to that page nor shows the dropdown menu. Is anyone else having this issue? It appears that the static pages demo theme also has the same problem. Any help would be greatly appreciated.

ocrobercms.com9650
ocrobercms.com9650

I'm having the same issue, the navbar has one level of sub-items, but that's all. Any levels under that have a caret on the item indicating there's another level there, but it's doesn't expand with a click or hover. The item is not clickable either, it just closes the menu.

Does anyone have a fix?

maxDubovsky
maxDubovsky

What is happening in the source of the page? Are there menuitems ? Maybe some Javascript or Css missing for displaying the dropdown. I've tested this plugin in themes: Multi & FlatUI. It works fine there.

ocrobercms.com9650
ocrobercms.com9650

You can have a look here. The source is a bit messy, due to the partial.

https://octobercms.iamnota.org/ (Note: self-signed SSL certificate)

I've done a fresh install of the CMS, created a new theme and deleted the demo theme. I then followed the instructions from https://octobercms.com/blog/post/getting-started-static-pages to get the left nav. I don't want a right nav, that will be search, or the blog.

I created these static pages (each indent is a sub-level):

Home
3 HP
    Disassembly
7 1/2 HP
    Disassembly
    Repair
        Inlet Valve Cage
Contact

As you can see, the nav works down to Repair, however it is not clickable, and it's child does not appear.

I've tested with FF and Chrome, and there's no JS errors on the console.

Edited 8 times to stop Markdown interpreting my indents.

Last updated

maxDubovsky
maxDubovsky

{# Note: Only one levels of sublinks are supported by Bootstrap 3 #}

That's what is written... but I'm sure it is possible to extent partials and check the for the next child...

madhuri.k10980
madhuri.k10980

maxDubovsky said:

{# Note: Only one levels of sublinks are supported by Bootstrap 3 #}

That's what is written... but I'm sure it is possible to extent partials and check the for the next child...

Hai,

Will you please explain how it is possible???

maxDubovsky
maxDubovsky

Hi, Check BenFreke menumanager plugin. After installation go to /plugins/benfreke/menumanager/components/menu/default.htm You will find a twig syntax on how to make html for 3rd level. But you will still need some extra CSS to be able to display it correctly. Write your own or take someone's as an example. I had no need to far to make it, I'm sure it exists. In my previous projects I've been using css drop down menu like here: http://griva.lv/en/

wmeloff11651
wmeloff11651

Evrything is work. Check my code. If u need the subitems of u item use 'items'
(http://octobercms.com/plugin/rainlab-pages) items - an array of the menu item subitems, if any. If there are no subitems, the array is empty

{% for item in item %} {% for subitem in item.items %} < -a href="{{ subitem.url }}">{{ subitem.title }}<- /a > {% endfor %} {% endfor %}

Last updated

1-8 of 8

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.