【问题标题】:Make slug and menu location independant in GRAV cms在 GRAPHcms 中使 slug 和菜单位置独立
【发布时间】:2018-04-18 17:24:15
【问题描述】:

是否可以有一个像http://example.com/page_slug 这样的简单 URL 并将页面添加到菜单中我想要的任何位置,尤其是子位置?

问题是每当我将页面附加到父菜单时,我都会在 slug 中获得许多级别,例如:http://example.com/parent/page_slug

【问题讨论】:

  • 到目前为止你尝试过什么?请包含说明问题的页眉。

标签: menu content-management-system slug grav


【解决方案1】:

我得到了答案here

使用标题部分中的“路由”选项,我可以设置特定的 slug,而不管文件夹名称或父文章。

routes:
    default: '/my_slug'

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2014-06-05
    • 2018-03-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-20
    相关资源
    最近更新 更多