Grails 应用程序的面包屑导航

发布于 2024-08-07 14:33:36 字数 251 浏览 4 评论 0原文

对于我的第一个 grails 项目,我喜欢使用面包屑导航。 到目前为止我发现的唯一插件是 菜单插件

使用这个插件我只能创建一个静态菜单结构使用 CRUD Web 界面。但生成的菜单有自己的网页,例如站点地图,我不知道谁将其集成到我现有的网站中。

有谁知道更好的插件,或者更动态的方法?

谢谢斯特凡

for my first grails project i like use a breadcrumb navigation.
The only plugin i found so far is menu plugin

With this plugin i was only able to create a static menu structure using
the CRUD web interface. But the generated menu has its own web page, like a sitemap, and i have no clue who to integrate it into my existing web site.

Does anybody knows a better plugin, or an approach that would be more dynamic?

Thanks Stefan

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

浅忆流年 2024-08-14 14:33:36

grails 面包屑插件效果很好。
http://www.grails.org/plugin/breadcrumbs

它需要 jQuery 插件。

我将其放在 main.gsp 布局的头部

    <g:javascript library="jquery" plugin="jquery"/>
    <crumbs:resources/>

,并将其放在主体中

    <h1 id="pageName"><g:layoutTitle default="Grails" /></h1>
    <crumbs:trail selector="#pageName"/>

The grails breadcrumbs plugin works great.
http://www.grails.org/plugin/breadcrumbs

It requires the jQuery plugin.

I put this in the head of my main.gsp layout

    <g:javascript library="jquery" plugin="jquery"/>
    <crumbs:resources/>

and this in the body

    <h1 id="pageName"><g:layoutTitle default="Grails" /></h1>
    <crumbs:trail selector="#pageName"/>
骄兵必败 2024-08-14 14:33:36

这里有一个较新的 Breadcrumbs Grails 插件:

https://grails.org/plugin/groovy-breadcrumbs-插件

There is a newer Breadcrumbs Grails plugin here:

https://grails.org/plugin/groovy-breadcrumbs-plugin

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文