MODx Evolution 1.0 中的自定义用户字段 - OnWUsrFormRender
我正在尝试通过自定义插件将自定义用户字段添加到 MODx Evolution 1.0 中的 Web 用户管理器区域。我处于早期阶段,无法让“OnWUsrFormRender”挂钩执行任何操作。有什么想法吗?
这是我的测试插件代码:
<?php
$e = &$modx->Event;
switch($e->name){
case "OnWUsrFormRender":
$fields = '
Test Info: <input type="text" name="test"/>
';
$e->output($fields); //this doesn't show up
echo 'testing'; //this doesn't show up
break;
}
?>
(PS-我尝试过 WebUserPE 和 PPP,但它们都不适合我的情况......)
I'm trying to add custom user fields to the Web Users Manager area in MODx Evolution 1.0 via a custom plugin. I'm in the early stages and can't get the 'OnWUsrFormRender' hook to do anything. Any ideas?
Here's my test plugin code:
<?php
$e = &$modx->Event;
switch($e->name){
case "OnWUsrFormRender":
$fields = '
Test Info: <input type="text" name="test"/>
';
$e->output($fields); //this doesn't show up
echo 'testing'; //this doesn't show up
break;
}
?>
(PS- I've tried WebUserPE and PPP, but neither of them are good for my situation...)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不得在插件中包含标签。
除了代码可以正常工作之外,
You must not include
tags in plugins besides that the code works fine.