标题子菜单

Hi, thanks for your answer.

I have not updated the version yet.
Being a beta version I would not even dare to do it. I saw in the Discourse trial that it works.
If I take my version to 2.6 will it work?

Thank you for what you can guide me

Must be a bug. It can’t get this to work either. I just override it in css.

If I lost the plugin due to bad update, as an example, is there a way to upload only the menus that I typed instead of the entire forum?

It happened to me that I accidentally deleted the plugin but I cannot find a way to upload just the menu items from the Backup/Rollback process.

One more question, but really serious.

I found a great problem trying to hide some menus on some categories’ pages using css. The target menus contain not Latin symbols, because all menus are in different languages. And I can’t base css rules on classes in this case.

@Johani , can you add an ID number to every menu? This would solve this problem. Waiting for your reply!

Update: a simple solution would be to manually add an extra parameter with a unique id number to every menu we add in the component settings.

Update2: I solved the problem with this solution: Custom header with dropdown navigation

1 个赞

I have 38 sub-menus in a menu. I need Vertical scroll for Sub menus. How to add? Kindly give me suggestions.

2 个赞

Hi,

I saw this theme component because I want a header that has both menu and submenu items. However, it seems that this component forces me to have a submenu item for every header. I can’t add the url to just the header.

The menu is added via Text, icon, title, view
There is no url here. How can I add link to a menu item that has no submenu items?

4 个赞

Is it a challenge to make a two column list for desktop view? For those of us with several links, this would solve a big headache! (scrolling to the bottom of the list automatically closes the menu, which is a UX concern). Great work!

3 个赞

罗兰多,你弄明白怎么做这件事了吗?
我也在尝试做同样的事情,但没有成功。
祝好 :slight_smile:

1 个赞

可惜没有,然后放弃了:/

1 个赞

你好 @hrayner@AntiMetaman,你们是否找到了如何添加带有链接的标题菜单项以及带有链接的子菜单项的方法?\n我也尝试做同样的事情,但没有成功 :sweat_smile:。\n谢谢你们,新年快乐! :partying_face:

1 个赞

嘿 Henry,

抱歉,我无法通过此方法解决。最后我用 HTML 和 CSS 从头开始制作了所有内容,我认为这是你的最佳选择。希望这有帮助!

1 个赞

我们正在使用这个主题组件,它几乎完美地满足了我们的需求。谢谢!

现在我们正在考虑在我们的网站上支持更多语言。这个组件可以本地化,以便它遵循界面的语言吗?

2 个赞

等等,这是:

因为这个?

今天早上在 2.9.0.beta2 上才注意到。我无法告诉你这在多大程度上提高了标题子菜单主题组件的功能。我今天会到处移动东西,就因为我能做到 :smiley:

9 个赞

是否有办法将管理员/员工类添加到下拉菜单或特定菜单项中。
即使无法访问,也不需要公开管理员特定的链接。这将非常有用。

这个自定义菜单看起来对我的情况很有希望。

我将 Discourse 的 JS 版本提供给 Google,效果很好,但我想使用此组件替换当前的汉堡菜单。Google 在渲染默认的 JS 汉堡菜单时遇到问题。

1. 这是否意味着菜单不需要 Javascript 即可运行?还是它的工作方式与原始菜单类似

2. 我能否在启用此自定义菜单的同时隐藏默认的汉堡菜单? (通过 CSS display none 完成)

编辑:好的,看来这个菜单不使用 JS。

1 个赞

是否可以有一个内置设置,仅显示给已登录用户?或者至少显示给特定信任级别或以上,以便基本上仅显示给已登录用户。

我认为 TL 概念很有用,如果对于每个标题项或列表项,可以为每个链接添加一个额外的可自定义项,用于显示菜单/链接的最低信任级别,因为它可用于向所有人显示一些链接,而向员工(TL4)仅显示其他链接。

1 个赞

@Cozdabuch
我的dropdown-header组件内置了此功能。不过,如果您的菜单项不多,最好使用该组件,因为它会将菜单项直接内联到Discourse的默认标题栏中。

1 个赞

@keegan 谢谢。我一直在考虑使用那个 TC,因为它更简洁,而且我看到了可定制的功能集。

我在 3 个菜单中每个菜单大约有 5-8 个链接。我担心显示太多会不好看。有什么想法?

1 个赞

@Cozdabuch 菜单内的链接可以更多,主要是顶级项目需要更少。如果你只有 3 个,那应该完全没问题。

2 个赞

如何为爬虫视图启用此功能?

也许我可以在爬虫 html .erb 文件中添加一些内容?