Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的小部件区域(webpartzone)具有之前/之后的 HTML 以使其适合页面布局。但是,如果编辑者选择不包含任何 Web 部件,那么我想将该区域的可见字段设置为 false。知道如何在宏中访问当前区域的子数吗?
您可以通过检查Web 部件是否有内容来隐藏 Web 部件。但我不相信您可以根据区域是否有内容来设置区域的可见性。