path alias 或pathauto 問題

建站初期,所有menu item link path, theme tpl.php 的命名都是用 nid 的 e.g. node/10, page-node-12.tpl.php 等等

當後期用path alias 或pathauto 將node/[nid] 改成有意思的名,

那麼 所有menu item link path , template 文件名都要跟著修改嗎??

hom 的照片

Re: path alias 或pathauto 問題

menu item link path 可改可不改
template 文件不需要改

adrianmak 的照片

Re: path alias 或pathauto 問題

在本地測試了一下, 在多語言環境下 Path alias 要如何設置?

嘗試過
一篇content 英語的 path alias是 比如about_us, 而設置中文版本時用about_us ,drupal 回應是存在了

因此在多語言環境下 Path alias 要如何設置呢?

charlesc 的照片

Re: path alias 或pathauto 問題

看你啊,可以設成 /zh-tw/about-us 之類的摟

adrianmak 的照片

Re: path alias 或pathauto 問題

即是要在path alias 同時要加個lang prefix string ???

RSS feed