Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Customize CMSTabControl - changes not visible View modes: 
User avatar
Member
Member
victor.cook-realpage - 6/24/2010 1:30:54 PM
   
Customize CMSTabControl - changes not visible
I need to modify the CMSTabControl in 5.5, but any change that I make does not appear on my web page in CMS Desk in any viewing mode.

Here is the file I am trying to change...
E:\KenticoCMS\CMSWebParts\Navigation\cmstabcontrol.ascx.cs

Here is the most simple example of a change that is not visible...
protected override void OnPreRender(EventArgs e)
{
base.OnPreRender(e);
this.Visible = this.tabElem.Visible;

...(other standard code that comes with the control)...

// test code
this.Visible = false;
}

I expected the addition of the test code line to cause the menu to be invisible, yet I can still see it. Suggestions?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 7/7/2010 3:51:35 AM
   
RE:Customize CMSTabControl - changes not visible
Hello,

Are you checking the correct webpart/page?

I applied the same code and it works. Pleas check some Sample Corporate site examples page in Examples -> Webparts -> Navigation -> Tab menu.

Best regards,
Boris Pocatko