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

Vote:
 

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

Cheers

#59243
May 25, 2012 14:42
Vote:
 

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 .

Minesh

#59248
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.