Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何更改表单中的 drupal 7 cck 正文标题,例如:
function mymodule_form_alter(&$form, $form_state, $form_id) { if($form_id == "mymodule_node_form"){ $form['title']['#title'] = t('Event Name'); } }
我以这种方式更改了标题的标题,但我无法更改正文标题对我有帮助吗?
您不必编写代码来修改 Drupal 7 中的正文标题。
如果您编辑Body内容类型中的字段(在 path admin/structure/types/manage/[content-type]/fields),您应该能够将标签从“Body”更改为您想要的另一个标签/标题。
Body
admin/structure/types/manage/[content-type]/fields