Drupal 6管理内容配置文件配置文件(Drupal 6 managing Content Profile profiles)

编程入门 行业动态 更新时间:2024-10-27 16:31:49
Drupal 6管理内容配置文件配置文件(Drupal 6 managing Content Profile profiles)

使用我继承的Drupal 6站点,我在理解基于内容配置文件的配置文件时遇到了一些问题。 站点管理员有他们想要删除的用户,并且这样做了,但是配置文件仍然显示在引用配置文件的字段下拉列表中。

我在内容选项卡上查看尝试以这种方式删除它们,它们没有列出,但我可以在数据库中手动查询它们,它们就在那里。 其他配置文件(来自现有用户)在“内容”选项卡上可见。

我犹豫是否直接从数据库中删除它们,因为我不知道这些记录可能具有哪些依赖项。

最重要的是,我需要一种可重复的方法来清理那些没有用户关联的配置文件。

谢谢

Working an a Drupal 6 site that I inherited, and I'm having a bit of a problem understanding Content Profile-based profiles. The site admin had users they wanted to delete, and did so, but the profiles are still showing up in a field drop-down that references profiles.

I look on the Content tab to try and remove them that way, they're not listed, but I can query them manually in the database, and they're there. Other profiles (from existing users) are visible on the Content tab.

I hesitate deleting them from the DB directly, since I don't know what dependencies those records might have.

Bottom line, I need to have a repeatable way of cleaning up those profiles that have no users associated with them.

Thanks

最满意答案

尝试创建视图类型设置为User的视图。 在“关系”部分中,为“个人档案”添加关系。 设置所需的关系。 在fields部分中,添加相关Profile中的nid和title字段。 该视图现在应该拉入所有用户并输出任何相关配置文件的nid和标题。 这应该会消除未附加到现有用户的配置文件。 最后,编辑“节点参考”字段以使用刚刚创建的视图生成列出的项目。

Try creating a view with view type set to User. In the Relationships section, add a relationship for Profile. Set the relationship to be required. In the fields section, add the nid and title fields from the related Profile. The view should now be pulling in all users and outputting the nid and title of any related Profiles. That should eliminate Profiles that are not attached to existing users. Finally, edit your Node Reference field to use the view you just created to generate the listed items.

更多推荐

本文发布于:2023-07-19 21:47:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1187547.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:配置文件   内容   Drupal   managing   profiles

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!