Beispiel #1
0
        /// <summary>
        /// Add a new content block to this gadget
        /// </summary>
        /// <param name="content"></param>
        /// <returns></returns>
        public ContentBlock AddContentBlock(ContentBlock content)
        {
            content.MyRootMaster = this;
            ContentBlocks.Add(content);
            content.IncludeWrappingDivs = RenderingOptions.DivWrapContentBlocks;
            //check for reserved profile.left / profile.right and handle side effects
            string pmount;

            if (content.IsReservedProfileView(out pmount))
            {
                this.MySpaceViewSettings.ProfileLocation = pmount;
            }

            return(content);
        }