有些单元格只应该在PC页面使用,有些只应该在手机页面上使用,通过SupportUsingScope可以控制单元格的可见范围。
[SupportUsingScope(PageScope.AllPCPage, ListViewScope.None)] public class MyPluginCellType : CellType { }
PageScope 值
NormalPCPage | 普通PC页面 |
NormalMobilePage | 普通手机页面 |
MasterPCPage | PC 母版页 |
MasterMobilePage | 手机母版页 |
TemplatePCPage | PC页图文列表模板 |
TemplateMobilePage | 手机页图文列表模板 |
UserControlPage | 组件 |
AllPCPage | 所有PC页 |
AllMobilePage | 所有手机页 |
AllNormalPage | 所有普通页 |
AllMasterPage | 所有母版页 |
AllTemplatePage | 所有图文列表模板 |
AllPage | 所有页面(默认值) |
注意:目前没有支持把插件单元格保存到表格中,所以ListViewScope应该传None。