Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Adding new tab to my account web part View modes: 
User avatar
Member
Member
ju.hu-joinina - 6/11/2013 12:48:40 AM
   
Adding new tab to my account web part
I was wondering how do you add a new tab to the existing tabs such as "memberships", "subscriptions" or "notifications" in the my account web part and how do I add content for the new tab.

can this be done through the portal engine?

Thanks

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 6/11/2013 3:55:08 AM
   
RE:Adding new tab to my account web part
Hello,

You are able to customize this Web Parts and it's code via CMS Site Manager -> Development -> Web Parts -> Membership -> Logon & Registration -> My Account.

For more details please take a look at the Web Parts section in our Developers Guide.

Best regards,
Martin Danko

User avatar
Member
Member
ju.hu-joinina - 6/13/2013 1:53:41 AM
   
RE:Adding new tab to my account web part
Hi I went to the my account web part in development and i don't see an option to add another tab. I am using version 6.0.4297 is this a purely a code change?

Thanks

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 6/14/2013 7:05:26 AM
   
RE:Adding new tab to my account web part
Yes, you'd have to create another ascx control and add the functionality you wish. I'm doing this right now in v7. I was going to clone that control but decided I can get the same functionality by creating seperate pages and placing my custom webparts/controls on them. If you think about how the My Account wepart works, it simply places a parameter in the URL to display the proper tab.

I figured why not take advantage of the built in tools for navigation and URLs and just make those URL parameters into pages. Plus it makes the code easier to manage because you have several smaller controls vs. one large one. Hope this helps.

User avatar
Member
Member
Derek - 12/11/2013 11:00:32 AM
   
RE:Adding new tab to my account web part
May I ask where in the code-behind did you add your custom tabs to the tabMenu.Tabs?

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/13/2013 7:16:58 AM
   
RE:Adding new tab to my account web part
The code you have to modify is in the \CMSWebParts\Membership\Profile\MyAccount.ascx.cs file. As I mentioned its quite the complex webpart which is why I opted to use smaller, simpler webparts on different pages.