ExpressionEngine 成员导入:从数据库中删除成员而不是 XML 文件中的成员?

发布于 2024-11-02 16:17:26 字数 222 浏览 1 评论 0原文

我的客户维护着自己的会员数据库,并希望时不时地向网站推送更改。

ExpressionEngine 数据库导入非常适合此目的,但在客户从数据库中删除成员的情况下,他们希望在网站上删除同一成员。这意味着在导入期间,当前数据库中不在 XML 文件中的任何成员都应被删除。

有没有办法调整导入功能来做到这一点?或者有模块吗?或者我没有考虑过一种完全不同的、更优雅的方法?

My client maintains their own membership database and would like to push changes to the website every now and then.

The ExpressionEngine database import works great for this, but in the case where the client deletes a member from their database, they want that same member to be deleted on the website. This would mean that during an import, any member currently in the database that was NOT in the XML file should be deleted.

Is there a way I can tweak the import functionality to do this? Or is there a module? Or a completely different, more elegant approach I have not considered?

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

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

发布评论

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

评论(1

冷情 2024-11-09 16:17:26

您确实可以修改成员导入功能,但是您正在修改核心文件,这对于升级来说是一个坏主意。

您最好像往常一样进行成员导入,然后构建一个模块,该模块采用相同的导入文件并且不进行任何配置文件更新,而只是根据任何唯一标识符执行成员数据库和 XML 之间的差异您正在使用,删除其余部分。

You could indeed modify the Member Import function, but then you're modifying core files, which is a bad idea for upgrades.

You'd be better off doing your member imports as per usual, then building a module which takes the same import file and doesn't do any profile updates, but simply performs the diff between the member database and the XML based on whatever unique identifier you're using, deleting the remainder.

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