Hi All,
Basically My requeirement is I want to disable the overview Tab for a specific community.
I tried by editing main.ftl in a theme and mapped that theme to the community which i supposed to apply that feature
but it did n't work. Can anybody tell am i doing the right thing and please give me some suggistions also.
Thanks
Arun
Hi Arun,
The main.ftl is for the root community. If you want to remove the Overview tab for a specific community under the root community, you'll want to theme community.ftl. Another approach would be to modify the community-tabs overview ui component in your plugin.xml so that the <when> clause evaluates to false on your target community:
<component id="community-tabs">
<tab id="overview"
cssClass="jive-link-overview">
<name><![CDATA[<@s.text name="comnty.tab.overview" />]]></name>
<description><![CDATA[<@s.text name="comnty.tab.overview.desc" />]]></description>
<when><![CDATA[CommunityPermHelper.isCommunityAdmin(community) || action.isHasCustomized()]]></when>
<url>
<![CDATA[<@s.url value='${JiveResourceResolver.getJiveObjectURL(community)}'/>?view=overview<#if tagSet?exists>&tagSet=${tagSet.ID?c}</#if>]]></url>
</tab>
Hope that helps!
Thanks for your reply.
Acutally I suppose to show only Overview Item in The Overview Tab rest all other itemes like All content ,Document items
i don't want to show. And Can i do this by editing community.ftl and what i suppose to do there can you please explain me.
Thanks
Arun
My mistake, it's actually in the community-header.ftl. See this section:
<#assign component = UIComponents.getUIComponent('community-tabs') />
<!-- BEGIN browse community tabs -->
<div class="jive-body-tabbar">
<@jive.displayTabs component ; tab >
<#if (tab.id == "overview" && (CommunityPermHelper.isCommunityAdmin(community)) && (!widgetContainerBeingEdited || widgetContainerEditUser.ID == user.ID))>
<span id="jive-${tab.id}custom-tab" class="jive-body-tab <#if view == tab.id >jive-body-tabcurrent</#if>">
<span class="jive-body-tab-customizable">
<a title="${processAsTemplate(tab.description!)}" href="<@s.url value='${JiveResourceResolver.getJiveObjectURL(community)}'/>?view=${tab.id}<#if tagSet?exists>&tagSet=${tagSet.ID?c}</#if>"><span class="${tab.CSSClass!}"></span>${processAsTemplate(tab.name!)}</a>
<em>(<a href="<@s.url action='customize-community' />?community=${community.ID?c}" class="jive-link-overview-customize"><@s.text name='comnty.tab.customize' /></a>)</em>
</span>
</span>
<#else>
<span id="jive-${tab.id}-tab" class="jive-body-tab <#if view == tab.id >jive-body-tabcurrent</#if>">
<a title="${processAsTemplate(tab.description!)}" href="${processAsTemplate(tab.url!)}"><span class="${tab.CSSClass!}"></span>${processAsTemplate(tab.name!)}</a>
</span>
</#if>
</@jive.displayTabs>
Thanks for the Replay again,
Will this change won't effect other communities to show the full overview Tab.
Thanks
Arun
Thank you very much Austen It really Helped me to implement the feature.
Thanks
Arun
Hey Austin,
Can you post images of before and after?
- Wally
Hi Wally,
Unfortunately, I haven't actually written this customization, I was merely giving tips on how it could be done. If you're just looking for info on how to do theme mapping, there are docs here. Arun may be able to provide you with some screenshots though?
Thanks Austen,
Try the link you sent. I got a "Not Found" "The item does not exist. It may have been deleted."
Arun are you willing to share your screen shots?
Wally Rogers
Oregon E-Government Program Manager
DAS/Enterprise Information Strategy and Policy Division
(503) 378-2973
That's odd...
Seems to be working for me when I click it. Here's the full URL, just in case:
Jive combines collaboration software, community software & social networking software into the leading SBS solution.
© Copyright 2000–2009 Jive Software. All rights reserved.
915 SW Stark St., Suite 400, Portland, OR 97205