在表达式引擎中:操作文本字段/wygwam 字段的内容?

发布于 2024-09-28 18:23:53 字数 152 浏览 1 评论 0原文

我想在表达式引擎中操作文本字段/wygwam 字段的内容。例如,当有人使用文件上传工具上传 mp3 文件时,我想将链接转换为调用 mp3-flashplayer 的 flash 嵌入。

另一个例子是,每当有人发布 vimeo 视频的链接时,我都想将其转换为该视频的嵌入版本。

I would like to manipulate the content of a textfield/wygwam-field in expression-engine. For example, when someone uploads an mp3-file with the file-uploading-tool, I would like to convert the link into a flash-embed that calls an mp3-flashplayer.

Another example is that whenever someone posts a link to a vimeo-video I would like to convert it into an embeded version of that video.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

初吻给了烟 2024-10-05 18:23:53

您可以创建一个挂在 entry_submission_ready 挂钩上的扩展程序在将内容保存到数据库之前修改相应字段中的内容。

You could create an extension that hangs on the entry_submission_ready hook that modifies the content in the appropriate fields prior to it being saved to the DB.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文