gpt4 book ai didi

drupal - 基于 url 命名 Drupal 7 模板文件

转载 作者:行者123 更新时间:2023-12-01 01:27:58 25 4
gpt4 key购买 nike

如果我有一个 url 别名为“/api/user/create”的页面,我如何根据 url 命名模板文件,例如“page-api-user-create.tpl.php”。

最佳答案

你需要给它命名:

page--api--user--create.tpl.php

(注意文件名中的双破折号)。

http://drupal.org/node/1089656了解更多信息。

关于drupal - 基于 url 命名 Drupal 7 模板文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6560786/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com