Identify what content area you are placing your Content function in to


Hi Guys

Is their anyway of identifying what content area you are placing your content function into, i need to do this is the layout will change depending where the function has been placed


May 25, 2012 14:42

Ok the only way i could identify a solution for this was to do the following

            ContentAreaData contentArea = this.CurrentExtensionPageData.GetContentAreaById("RightColumn");
            foreach (var data in contentArea.ContentFunctions)
                if (data.Guid == ContentFunctionData.Guid)
                    string xtc = "do some magic"; 


Let me know if any one else finds any different approaches to this .


May 25, 2012 18:18
This thread is locked and should be used for reference only. Please use the Legacy add-ons forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.