开发者

how drupal turn title of node into a url

for example , i have node with title 'services & containers' , drupal path or path_auto modu开发者_如何学Pythonle will turn that title into a url string 'services-and-containers'.

I have looked up node, path, path_auto module, and did not found any function turns title into url.

could any one tells me which function, drupal used to to that?


It's not a function, its the combined functionality of Token, Path, and Pathauto modules.

There is 'a' function, but it's not automatic:

http://api.drupal.org/api/function/path_set_alias/6

Why not just use Pathauto?


The function in pathauto module that handles the alias creation is http://drupalcontrib.org/api/function/pathauto_create_alias/6

If you want to change the way the alias is created, assuming that you use pathauto, you can set different options on admin/build/path/pathauto (assuming drupal6)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜