更新表达式引擎频道输入内容

发布于 2025-02-08 18:34:07 字数 393 浏览 2 评论 0原文

我是表达引擎的新手,因此可能对大多数人来说可能不正确。

我正在尝试更新频道条目的内容,但不确定是否可能。

我检查了 cannel firans api api 这个API我只能更新该字段的结构,但是我要实现的目标是更新其中可用的数据。

例如,对于一个名为博客的频道,我添加了一个自定义字段“参考”。此自定义字段包含一个URL。我需要根据外部API更新此URL,但要确定如何更新。

我感谢任何帮助。

I'm new to expression engine so might question might not sound right to most people.

I'm trying to update the content for a channel entry but not sure whether it's possible or not.

I checked the channel fields API but through this API I can only update the structure of the field but what I'm trying to achieve is update the data available in it.

For example for a channel called Blog, I've added a custom field 'reference'. This custom field contains a URL. I need to update this URL based on an external API but sure how.

I'd be grateful for any help.

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

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

发布评论

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

评论(1

π浅易 2025-02-15 18:34:07

您绝对可以做到这一点,但是频道场API实际上是旧的/弃用的。 EE的最新版本(5,6,7)使用新型号。有几种方法可以解决,其中之一是使用可以调用的操作URL创建自己的附加组件,在插件/模块代码中,您可以接收API请求并按照您的意愿进行操作。

https://docs.eptressepmesseptryengine.com/latest/latest/deveveloverment/develoverment/models/models/models/cartion。 html https://docs.eppressionengine.com/latest/latest/latest/defloct/deflovement/modeverment/modleverment/modules/modules/modules/modules 。

​给它一个API URL,并将更新条目。您可以确定要更新的字段。全面披露我拥有该附加组件,只给您选项:) https://boldminded.com/add -ONS/DATAGRAB

您应该检查论坛,或者更好的是,人们非常活跃。 https://expressiongine.com/forums https://expressiongine.com/blog/join-us-us-in-slack#join-us-us-on-slack

You can definitely do that, but the channel field API is actually old/deprecated. More recent versions of EE (5,6,7) use the new models. There are several ways to go about this, one of which is to create your own add-on with an Action URL you can call, and in the plugin/module code you can receive the API request and do what you want with it.

https://docs.expressionengine.com/latest/development/models/action.html https://docs.expressionengine.com/latest/development/modules.html

Or, you could take the easy path and use the DataGrab module, which is setup to do just this. Give it an API Url and it'll update entries. You can specific which fields to update. Full disclosure I own that add-on, just giving you options :) https://boldminded.com/add-ons/datagrab

You should check out the forums, or better yet the Slack, where people are pretty active. https://expressionengine.com/forums https://expressionengine.com/blog/join-us-in-slack#join-us-on-slack

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