Return to Jive Software

Skip navigation
6,755 Views 18 Replies Last post: Jul 13, 2009 11:54 AM by pugliesp RSS
pugliesp Novice 88 posts since
Oct 9, 2007
Currently Being Moderated

Apr 17, 2009 8:58 AM

Display Community Descriptions

Hello,

 

In the admin console of Clearpsace (Community > Settings > Community Settings) there is a field to enter the description for each community created.  Is there a way to have this information displayed on the public site? I don't see where else this information is used.

 

We would like the community descriptions to be displayed on the main community page next to the community name.  Is this possible?
http://community.lls.org

 

Thank You

vinh.jones Jive Employee 15,502 posts since
Apr 1, 2008
Currently Being Moderated
Apr 17, 2009 11:57 AM in response to: Peter Pugliese
Re: Display Community Descriptions

Hey Peter,

 

There is no way to do this out of the box. If you're adept at making theme changes, I can point you in the right direction for displaying a community's description.

 

Thanks,

vinh

vinh.jones Jive Employee 15,502 posts since
Apr 1, 2008
Currently Being Moderated
Apr 21, 2009 11:43 AM in response to: Peter Pugliese
Re: Display Community Descriptions

It is in place in the source code. You can call the description at the theme-level if there is already a community in the code. For example, if you look at /template/widget/subcommunities.ftl, you can place the description there by modifying this part of the template:

 

<ul class="jive-sidebar-subcommunities">
<#list children.get(community) as subcommunity>
    <li class="jive-communitylist-med">
        <a href="<@s.url value='${JiveResourceResolver.getJiveObjectURL(subcommunity)}'/>">${subcommunity.name?html} <br /> --> ${subcommunity.description?html}</a>
        <#if (showChildren && (children.get(subcommunity)?exists && children.get(subcommunity).size() > 0))>
        <ul>
            <#list children.get(subcommunity) as subsubcommunity>
                <li class="jive-communitylist-sm"><a
                    href="<@s.url value='${JiveResourceResolver.getJiveObjectURL(subsubcommunity)}'/>">${subsubcommunity.name?html}</a><br /> --> ${subsubcommunity.description?html}</li>
            </#list>
        </ul>
        </#if>
    </li>
</#list>

 

Where --> is the beginning of the added code.

 

Thanks,

Vinh

vinh.jones Jive Employee 15,502 posts since
Apr 1, 2008
Currently Being Moderated
Apr 21, 2009 12:11 PM in response to: Peter Pugliese
Re: Display Community Descriptions

In the subcommunities.ftl template, there are two views (separated by an IF condition) -- the first is for the smaller widget and the second is for the larger widget that you took a screencap of. You'll want to make similar changes for the lower half of the template.

vinh.jones Jive Employee 15,502 posts since
Apr 1, 2008
Currently Being Moderated
May 6, 2009 1:39 PM in response to: Peter Pugliese
Re: Display Community Descriptions

I'm not sure I understand, I don't see descriptions at all in that screenshot.

 

What does your code look like?

vinh.jones Jive Employee 15,502 posts since
Apr 1, 2008
Currently Being Moderated
May 11, 2009 9:54 AM in response to: Peter Pugliese
Re: Display Community Descriptions

If you look at this line in your theme:

 

<td class="jive-communitylist-name-sub"><a href="<@s.url value='${JiveResourceResolver.getJiveObjectURL(subsubcommunity)}'/>" class="jive-communitylist-sm">${subsubcommunity.name?html}</a> ${subcommunity.description?html}</td>

 

You are calling the sub-community's description instead of the sub-sub-community.

vinh.jones Jive Employee 15,502 posts since
Apr 1, 2008
Currently Being Moderated
May 11, 2009 10:32 AM in response to: Peter Pugliese
Re: Display Community Descriptions

Sorry, the hyphens were just there for readability. It should be similar to other calls on that line, so:

 

{subsubcommunity.description?html}
vinh.jones Jive Employee 15,502 posts since
Apr 1, 2008
Currently Being Moderated
Jun 30, 2009 11:40 AM in response to: Peter Pugliese
Re: Display Community Descriptions

It should be the exact same widget. What type of problems are you having with it?

vinh.jones Jive Employee 15,502 posts since
Apr 1, 2008
Currently Being Moderated
Jul 6, 2009 1:30 PM in response to: Peter Pugliese
Re: Display Community Descriptions

The description is only showing up for the widget if it's under one of the smaller columns right now. You'll have to alter line 78 of the FTL and add in a call to the description in order to make it show up for the larger widget layout.

 

Thanks,

Vinh

More Like This

  • Retrieving data ...

Bookmarked By (0)

To better serve our customers we have included functionality to automatically follow up on a case after it has been idle for more than 5 days, and then auto close after an additional 3 days of inactivity. Choose No to acknowledge that this case will remain idle for longer than 5 days.
Making cases public allows other customers to learn from the solution of the case. It can also be used to gain feedback from others in the community. Ask our Support Engineers for more info, but we encourage you to make your cases public.