开发者

hook_menu for sitename.com/content-title

开发者 https://www.devze.com 2023-01-08 16:55 出处:网络
I want to use sitename.com/content-title for one possibly two content types. I can’t seem to add the correct wild card/token the menu hook.

I want to use sitename.com/content-title for one possibly two content types.

I can’t seem to add the correct wild card/token the menu hook.

$items['%'] = array( … )开发者_JS百科;

Is this possible?


pathauto should do this for you. Use path rather than menu hooks for content as large menus cause perforance hits.

0

精彩评论

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