ExpressionEngine 成员导入:从数据库中删除成员而不是 XML 文件中的成员?
我的客户维护着自己的会员数据库,并希望时不时地向网站推送更改。
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您确实可以修改成员导入功能,但是您正在修改核心文件,这对于升级来说是一个坏主意。
您最好像往常一样进行成员导入,然后构建一个模块,该模块采用相同的导入文件并且不进行任何配置文件更新,而只是根据任何唯一标识符执行成员数据库和 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.