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.
我在 Processwire 中创建了自定义字段 impressum_text,现在我需要在我的主题中显示此字段。我怎样才能在我的主题中显示这个自定义字段(在文件 _main.php 中)?
你能帮我吗?
自定义字段
谢谢!
你只需输出$page->impressum_text
$page->impressum_text
这可以直接通过echo $page->impressum_text,也可以将其分配给如下变量:
echo $page->impressum_text
$out = $page->impressum_text在您页面的模板文件中,例如 basic-page.php
$out = $page->impressum_text
然后在你的 _main.php 中回显 $out