Close

TOPICS in dropdown not working

ISESSoftpack
9 years ago
#8709 Quote
Avatar
  • 13
Hi, I'm using the code you left as comment in the MegaMenu.cshtml for creating a dropdown for the Topics but the dropdown is not working, the menu items are visible and clickable all the time.

The code I use is 
    <li>
        <span title="Topics">Onderwerpen</span>
        <ul class="sublist">
            @foreach (var topic in Model.Topics)
            {
                <li><a href="@Url.RouteUrl("Topic", new {SeName = topic.SeName})" title="@topic.Name">@topic.Name</a></li>
            }
        </ul>
    </li>

I'm not a css guru :-) and can't seem to find the problem.

Regards, Machiel Broekman
Machiel Broekman
ISES Softpack
Netherlands
Deni
9 years ago
#8718 Quote
Avatar
  • Moderator
  • 389
Hi, 

We made some mark-up re-factoring and we missed to update this comment. It should look like this: 

<li>
  <span title="Topics">Topics</span>
  <div class="sublist-wrap">
    <ul class="sublist">
      @foreach (var topic in Model.Topics)
      {
        <li><a href="@Url.RouteUrl("Topic", new {SeName = topic.SeName})" title="@topic.Name">@topic.Name</a></li>
      }
    </ul>
  </div>
</li>
Best Regards,
Mladen Staykov
Nop-Templates.com
ISESSoftpack
9 years ago
#8726 Quote
Avatar
  • 13
Deni wrote:
Hi, 

We made some mark-up re-factoring and we missed to update this comment. It should look like this: 

<li>
  <span title="Topics">Topics</span>
  <div class="sublist-wrap">
    <ul class="sublist">
      @foreach (var topic in Model.Topics)
      {
        <li><a href="@Url.RouteUrl("Topic", new {SeName = topic.SeName})" title="@topic.Name">@topic.Name</a></li>
      }
    </ul>
  </div>
</li>


Hi Deni,

Thanks solved.

Regards, Machiel broekman
Machiel Broekman
ISES Softpack
Netherlands