Recursive Zones

Topics: Developer Forum
Feb 17, 2009 at 8:14 PM
I have followed the instructions in the documentation to add a user control to a zone on a page.  I can add the control by adding the item I created to a zone on a page.  How do I make this control recursively appear on all pages that are below the page that I added it to?
Feb 17, 2009 at 8:55 PM
This is one way.

                public override ItemList GetChildren(string childZoneName)
                        ItemList items = base.GetChildren(childZoneName);
                        if (childZoneName.StartsWith("Recursive") && Parent is AbstractContentPage)
                        return items;