我正在建设一个单一语言的网站(德语),但我想有我的代码/表等在英语。当我像这样定义contenttype时:
plays:
name: Theaterstücke
slug: theaterstuecke
tablename: plays
singular_name: Theaterstück
singular_slug: theaterstueckbolt使用表bolt_plays,但在twig中,我必须使用....records = "theaterstueck/latest/6“。但我希望有模板使用英语路线(“播放/最新/6”)和网址仍然http://example.com/theaterstuecke
我是否必须使用转换和路由,或者是否有更简单的方法?
发布于 2015-07-29 21:07:50
将两个slug更改为:
plays:
name: Theaterstücke
slug: plays
tablename: plays
singular_name: Theaterstück
singular_slug: play它应该是好的
https://stackoverflow.com/questions/31568951
复制相似问题