如何将drupal页面制作成菜单和子菜单(如管理员菜单)
我是 Drupal 的新手,我只想创建一个网站,其中包含有关我们、联系我们和其他可能在很长一段时间后更改的静态信息等页面。
现在我可以创建主页的页面和子页面。链接显示在徽标的顶部,子页面显示在主页的侧面。
我安装了 dhtml_menu 模块但无法工作。
是否需要对 dhtml_menu 模块进行任何更改才能使页面正常工作?
或者
我需要使用任何其他模块?
请帮我解决这个问题
谢谢。
I'am new to Drupal, i just want to create a website which contains pages like about us, contact us and other static information that may be changed after a long time.
Now i can create the pages and sub pages to main pages. The links are displaying on the top of the logo and the sub pages were showing on the side of the main page.
i installed the dhtml_menu module but not working.
are there any changes required to dhtml_menu module to make work for pages?
or
i need to use any other module?
please help me to solve this issue
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你的问题很令人困惑。如果您只想像管理菜单一样在树中显示页面(这似乎就是您所要求的),那么您不需要任何额外的模块。
只需创建您的页面并将它们全部放在主菜单中即可。然后,创建页面后,将主链接块(在“管理”、“块”中)添加到您想要的任何位置。该块将显示页面的导航树,就像管理员菜单一样。
编辑
哦,那么你想要下拉菜单吗?那么你不需要 dhtml_menu (它只会阻止打开页面时不必要的页面加载),但需要类似 simplemenu 。创建主链接,转到“管理”、“站点配置”、“SimpleMenu”,并将“菜单”设置设置为“<主链接>”。这将显示一个下拉菜单栏以浏览您的网站...
Your question is pretty confusing. If you just want to display the pages in a tree just like the administration menu (which seems to be what you're asking), then you don't need any extra modules.
Just create your pages and put them all in the primary menu. Then, once your pages are created add the Primary links block (in Administer, Blocks) anywhere you want. That block will display the navigation tree of your pages, just like the administrator menu does.
edit
Oh, so you want the drop down menus? Then you don't want dhtml_menu (which will only prevent unneccessary page loading when you open pages), but need something like simplemenu. Create your primary links, goto Administer, Site Configuration, SimpleMenu and set the "Menu" setting to "< Primary links >". That will display a drop down menu bar to navigate through your site...
首先我要感谢 wimvds。 “谢谢 wimvds 的编辑,它让我找到了更多模块和主题”。
在主题“admire_grunge”中找到了解决方案,下拉菜单需要在主题中定义。
发现了更多像这样工作的主题。
谢谢。
First i need to say thanks to wimvds. "Thankyou wimvds for your edit it take me to find more modules and themes".
found the solution in a theme "admire_grunge" the drop down menu needs to be defined in the themes it self.
found some more themes that work like this.
Thanks.