how to hide a tab in mojo-tabs via code

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/14/2013 1:25:51 AM
Gravatar
Total Posts 42

how to hide a tab in mojo-tabs via code

Hi guys

i have created two tabs using the mojo-tabs .

one tab is is for the client ... the other is for the spouse ..

if the client does not have a spouse , i would like to hide the tab 

tried a few C# coding ideas without much like 

 

any ideas ?

 

LeeB

 

5/14/2013 7:30:17 AM
Gravatar
Total Posts 2239

Re: how to hide a tab in mojo-tabs via code

Hi,

See the /Secure/UserProfile.aspx or /Admin/SiteSettings.aspx pages for examples of this.

HTH,
Joe D.

5/14/2013 11:53:12 AM
Gravatar
Total Posts 18439

Re: how to hide a tab in mojo-tabs via code

If you produce the markup server side then you can put id= and runat=server on the markup items that you want to show and hide by server side logic. Once you do that you can set the visible property to false programmatically from server side code. If you are just using content templates you can't really do anything with server side code but in custom development you should be able to do whatever you want.

What Joe D is suggesting is where to find code examples to look at that also does server side hiding of some tabs based on criteria.

mojo-tabs is merely a css class we use as a selector to automatically wire up the jquery tabs widget to the markup.

Hope that helps,

Joe

5/15/2013 9:01:31 PM
Gravatar
Total Posts 42

Re: how to hide a tab in mojo-tabs via code

Thanks Joe

applied recommended solution to the tab and the content  and worked fine

TA

Lee

 

You must sign in to post in the forums. This thread is closed to new posts.