Web Part Zone List in Catalog Zone

Last post 04-02-2007 11:54 PM by mobfigr. 3 replies.

Sort Posts:

  • Web Part Zone List in Catalog Zone

    03-31-2007, 6:28 PM
    • Member
      409 point Member
    • mobfigr
    • Member since 09-19-2005, 2:15 PM
    • Austin, TX
    • Posts 99

    Guys,

    I've implemented a tabbed view of web parts on a page. Basically, I have 3 panels on the page. Each has 3 web part zones. And based on the value coming in from the querystring, I display the appropriate panel, thus displaying only catalog zones in that panel.

    This works great, except for one minute yet very annoying detail.

    If I'm looking at Panel 2, and trying to add a new web part to one of the zones, in the "Add To:" catalog zone list, I can see all the zones on that page. Even the ones that are NOT Visible. I look at the HTML of the page rendered, and the zone are definitely not there. Still, the drop down list in the catalog zone knows about the other zones.

     Can someone show me how to modify the list of available zones in the catalog zone?

    there can be no pact between lions and men...
    http://ireuben.net
  • Re: Web Part Zone List in Catalog Zone

    04-01-2007, 9:49 PM
    Answer
    • Member
      18 point Member
    • snikm
    • Member since 04-02-2007, 1:37 AM
    • Posts 4
     

    Glad that you asked this question.  This issue has been an open bug on our system for little while and your question gave me the kick in the pants needed to go and fix it.  

     

    Turns out to be a pretty easy fix. 

     

    Just set the AllowLayOutChange property to false on all the web part zones that you do NOT want to be listed in the catalog.

    The Catalog web part checks this property before adding a web part zone to its drop-down list and only adds zones where this property is true.

     

     

     

  • Re: Web Part Zone List in Catalog Zone

    04-02-2007, 5:03 PM
    • Member
      409 point Member
    • mobfigr
    • Member since 09-19-2005, 2:15 PM
    • Austin, TX
    • Posts 99

    snikm , you da man! Thanks for the post. I believe this might be the only forum out there that has an answer to this question - i know cause i spent half my weekend looking for a solution!!!!

    I'm going to try your solution out tonight, if I dont post a feedback that mean it worked perfectly. Thanks! Yes

    there can be no pact between lions and men...
    http://ireuben.net
  • Re: Web Part Zone List in Catalog Zone

    04-02-2007, 11:54 PM
    • Member
      409 point Member
    • mobfigr
    • Member since 09-19-2005, 2:15 PM
    • Austin, TX
    • Posts 99
    Freakin awesome! It worked...
    there can be no pact between lions and men...
    http://ireuben.net
Page 1 of 1 (4 items)