Setting which web parts should show up in 'suggested web parts for zone' - WebPartZone properties

The WebPartZone class has som properties that can be used to controll the appereance of it, what can be done to the web parts that it contains, define which web parts to put in the suggested web part area, etc.

  1. To define which Quick Add Group to use when picking "Suggested Web Parts for 'MyZone'" add this property to your zone in your Page Layout: QuickAdd-GroupNames="MyGroup"
  2. To exclude lists and views from the dialog for adding web parts add this property to your Page Layout zone: QuickAdd-ShowListsAndLibraries="false"

No comments: