Return to Jive Software

Skip navigation

This Question is Possibly Answered

1 "correct" answer available (4 pts) 1 "helpful" answer available (2 pts)
1,838 Views 11 Replies Last post: Aug 13, 2009 1:47 PM by austen.rustrum RSS
arun.988@gmail.com Novice 34 posts since
Feb 21, 2008
Currently Being Moderated

Aug 13, 2009 10:11 AM

Using theme per community

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

austen.rustrum Jive Employee 7,139 posts since
Feb 19, 2008
Currently Being Moderated
Aug 13, 2009 10:35 AM in response to: ravikumar
Re: Using theme per community

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!

austen.rustrum Jive Employee 7,139 posts since
Feb 19, 2008
Currently Being Moderated
Aug 13, 2009 10:47 AM in response to: ravikumar
Re: Using theme per community

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>
austen.rustrum Jive Employee 7,139 posts since
Feb 19, 2008
Currently Being Moderated
Aug 13, 2009 10:56 AM in response to: ravikumar
Re: Using theme per community
If create a theme with a customized community-header.ftl and apply it to a community (rather than setting it as the global theme), it will only apply to that community.
austen.rustrum Jive Employee 7,139 posts since
Feb 19, 2008
Currently Being Moderated
Aug 13, 2009 11:45 AM in response to: ravikumar
Re: Using theme per community
You bet!
wallyrogers Advanced 895 posts since
Feb 25, 2008
Currently Being Moderated
Aug 13, 2009 1:19 PM in response to: Austen Rustrum
Re: Using theme per community

Hey Austin,

Can you post images of before and after?

- Wally

austen.rustrum Jive Employee 7,139 posts since
Feb 19, 2008
Currently Being Moderated
Aug 13, 2009 1:32 PM in response to: Wally Rogers
Re: Using theme per community

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?

wallyrogers Advanced 895 posts since
Feb 25, 2008
Currently Being Moderated
Aug 13, 2009 1:43 PM in response to: Austen Rustrum
Re: Using theme per community

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

wallace.b.rogers@state.or.us

austen.rustrum Jive Employee 7,139 posts since
Feb 19, 2008
Currently Being Moderated
Aug 13, 2009 1:47 PM in response to: Wally Rogers
Re: Using theme per community

That's odd...   Seems to be working for me when I click it.  Here's the full URL, just in case:

 

http://www.jivesoftware.com/jivespace/docs/DOC-3263

More Like This

  • Retrieving data ...

Bookmarked By (0)