Mono Support Remove Photos option from the group view (Closed)

Viewed 12655 time(s), 3 post(s), 2/21/2012 9:47:54 PM - by sam0864
2/21/2012 9:47:54 PM
656 Reputation 79 Total posts

In the group view, we have three tabs (Wall, Photos, Discussion Board). Are these tabs customizable? Can I remove the Photos tab or I need the source code?

1
2/22/2012 9:03:27 AM
3016 Reputation 428 Total posts

Hi,

you do not need source code to implement that. You just need to navigate to group view's markup and put that tab in place holder and set it's visibility to false. Here is a code snippet:

...
<asp:PlaceHolder ID="plhPhotos" runat="server" Visible="false">
                                        <li class="<%= InternalWorkingMode.Equals(SnGroupWorkingMode.Photos) ? "current" : String.Empty %>">
                                            <asp:HyperLink ID="lnkPhotos" runat="server" CausesValidation="false">
                                                <span id="labPhotos" runat="server">Photos</span></asp:HyperLink></li>
                                                </asp:PlaceHolder>
...

Regards.

2
2/22/2012 8:35:43 PM
656 Reputation 79 Total posts

Thanks a lot
It is working for me.

3
This is a demo site for MonoX. Please visit Mono Software for more info.