Managed=“0"是什么意思?在列表视图中的 XML 是什么意思? [英] What does Managed="0" in List view XML mean?

查看:37
本文介绍了Managed=“0"是什么意思?在列表视图中的 XML 是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个 Data Extender 类和编辑器扩展,当您浏览 CME 中的列表(文件夹和结构组)时,它可以正确显示项目的一些附加列.我必须注册我的类来处理 GetList、GetListSearch、GetListUserFavorites 和 GetListCheckedOutItems 等命令.

I've written a Data Extender class and editor extension that properly displays a few additional columns for items as you browse lists in the CME (folders and structure groups). I had to register my class to handle commands like GetList, GetListSearch, GetListUserFavorites, and GetListCheckedOutItems.

我注意到的是,即使在 CME 中为下拉列表加载了模式列表时,代码也会运行(例如在创建新组件时,您会在下拉列表中获得模式列表)-下).因此,即使在这种情况下不需要我额外的数据列,代码仍在执行中并且会减慢速度.

What I've noticed is that the code gets run even when a list of say, schemas is loaded for a drop-down list in the CME (like when creating a new component and you get the list of schemas in a drop-down). so, even though my additional data columns aren't needed in that situation, the code is still being executed and it slows things down.

似乎是在这些情况下调用了 GetList 命令.所以,我不能只是跳过基于命令的处理.因此,我开始查看该类为列表接收的 XML,我注意到当为下拉列表运行代码时,XML 中有一个 Managed="0".例如:

It seems that it's the GetList command called in those situations. So, I can't just skip processing based on the command. So, I started looking at the XML that the class receives for the list and I've noticed when the code is run for the drop-downs, there's a Managed="0" in the XML. For example:

  • 对于结构组列表:
  • 对于文件夹列表:
  • 但是对于架构列表:
  • 对于显示类别关键字值的下拉列表:

那么,我可以使用这个 Managed="0" 作为标志来表明正在处理的列表不会显示我的附加列,我可以退出处理吗​​?

So, can I just use this Managed="0" as a flag to indicate that the list being processed isn't going to show my additional columns and I can just quit processing?

推荐答案

Managed 值表示可以在 OrganizationItem 中创建哪些项目:

Managed value is representation of what items can be created inside OrganizationItem:

  • 64 表示您可以创建页面
  • 16 表示您可以创建组件
  • 10,例如意味着您可以创建文件夹 (2) + 架构 (8)
  • 518 - 文件夹 (2) + 结构组 (4) + 类别 (512)

非组织项目的值为 0.

The value is 0 for non organizational items.

值取决于项目本身(例如,您不能在文件夹中创建页面),以及您对出版物和组织项目的安全设置

Value depends on the item itself (you can't create pages in folder, for example), as well as on security settings you have on publication and organizational item

这篇关于Managed=“0"是什么意思?在列表视图中的 XML 是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆