Start a new discussion

To start a new discussion please visit the discussions section of the GitHub home page of the project.

Discussions on GitHub

You can also search our old self-hosted forums for any useful information below but please note that posting new content here is not possible any more.

DoNotLinkIt

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #8321
    Pedro
    Participant

    Hello, i use the cms typo3, with bootstrap and smartmenu as menu.
    And did set that i can tell every page in menu that it not linked. But if i do this dont expand the submenus anymore from the mainmenu.
    example
    Games/
    Multiplayer/(notlinked)
    Gamename(invisible)

    where can i find the rule, where i can set if site isnt linked, the submenus expand.

    thank you

    #8322
    admin
    Keymaster

    Hi, honestly it’s a bit difficult for me to understand what exactly you need to achieve. I guess you could output a special class to the parent <li> element of the item (e.g. <li class="notlinked">...) and then use some CSS to hide/disable the sub menu or something like that.

    But to be able to help you, please at least share some kind of demo URL and try to explain a bit better what exactly you’d like to achieve.

    #8323
    Pedro
    Participant

    So, as you asked me to for a better explanation of my problem I will try it with the help of my testwebsite http://htulambo.test.v22017124090757741.bestsrv.de/.
    On my testwebsite are different tabs like “Suche”, “News_Detailseite” and so on.

    The problem I currently have is, that when I’m hovering on the tab “Suche +”, two tabs, “+Results” and “testseite” below, usually show up. If you continue to hover with your mouse on the linked site “+Results” another tab is expanding to the right called “Unterseite”.

    Now we come to the important part of my request. The tab “testseite” is in contrast to “Suche+” NOT linked. As a result the subpage “unterseite” is not expanding to the right like above “Suche+”.

    My question I logically have is, how could I fix the problem that even not linked pages can expand subpages and where in the code do I have to search for it.
    Kind regards, Pedro.

    #8325
    admin
    Keymaster

    Just change your no link items’ HTML from this:

    <span class="btn link">testseite</span>

    to this:

    <a href="#">testseite</a>

    Or if you like, you could also add a class to the link – e.g.:

    <a href="#" class="no-link">testseite</a>

    and some CSS to use the default cursor (or even disable the hover, etc.):

    .no-link {
    	cursor: default;
    	background-color: white !important;
    }

    In general, it’s not recommended having no-link items that have sub menus for various reasons. For a bit more insights as to why, you can take a look at the following topic:

    https://www.smartmenus.org/forums/topic/how-to-make-this-work-with-no-links-at-the-top-level/

    #8329
    Pedro
    Participant

    Thanks for the good declaration it works correctly. I integrated it in my html and css and it working :). And im very facilitated, dont have to did do it with javascript.
    Greetings Pedro

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘1.1.x + Bootstrap 4 addon’ is closed to new topics and replies.