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
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
Hi Vinh,
Could you let me know some additional details on the extent of the changes this woud require?
Thanks
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
Thanks. This is what we're looking for, but in a differant location. This added the descriptions to the spaces widget. Is there a way to get them to display on the main communtiy page under the communties widget? I see a communties-action & communties-project ftl file, but not a general one.
The page in question is http://community.lls.org.
Thanks
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.
Perfect. I didn't notice that the first time.
Thank You!
Hi,
When this was implemented in our live instance the descriptions for the parent community are being added next to all the children. Their separate descritions aren't applying. In the attached example some of the child communties have descriptions entered on the back-end, but the descriptions of the parent are showing for all. What do I need to change in the code so they show the correct descriptions?
I'm not sure I understand, I don't see descriptions at all in that screenshot.
What does your code look like?
In the screen shot exmple the descriptions are "Team In Training Community" and "Hike For Discovery Community". Those are entered in the admin console for the parent community, but are showing next to the parent AND child communities.
Here is the template code with the modifications Jive suggested. /template/widget/subcommunities.ft
<#if containerSize == enums['com.jivesoftware.community.widget.Widget$ContainerSize'].SMALL>
<!-- BEGIN communities list -->
<#if (children.size() == 0) >
<div class="jive-widget-body-empty">
<div class="jive-widget-empty jive-widget-empty-subspaces">
<div>
<p><@s.text name="widget.subcommunities.empty.desc"/></p>
</div>
</div>
</div>
<#else>
<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}</a><br />${subcommunity.description?html}
<#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>
</ul>
</#if>
<!-- END communities list -->
<#else>
<!-- BEGIN communities list -->
<#if (children.size() == 0) >
<div class="jive-widget-body-empty">
<!-- BEGIN empty subspaces message -->
<div id="jive-community-empty" class="jive-community-empty-small">
<div id="jive-community-empty-types">
<div id="jive-community-empty-subspaces">
<p><@s.text name="widget.subcommunities.empty.desc"/></p>
</div>
</div>
</div>
<!-- END empty subspaces message -->
</div>
<#else>
<div class="jive-community-subspaces" id="jive-widget-communities-list">
<div class="jive-widget-subspaces">
<div class="jive-communities-listing">
<table cellspacing="2" cellpadding="2" >
<thead>
<tr>
<td> </td>
<td><@s.text name="widget.subcommunities.disc.colhead" /></td>
<td><@s.text name="widget.subcommunities.doc.colhead" /></td>
<td><@s.text name="widget.subcommunities.bgpst.colhead" /></td>
</tr>
</thead>
<tbody>
<#assign communityCount = children.get(community).size() />
<#list children.get(community) as subcommunity>
<#assign className = 'jive-communities-listing-border'/>
<#if ((subcommunity_index == communityCount-1) && (!showChildren || !children.get(subcommunity)?exists || children.get(subcommunity).size() == 0))>
<#assign className=''/>
</#if>
<tr class="${className}">
<td class="jive-communitylist-name"><a href="<@s.url value='${JiveResourceResolver.getJiveObjectURL(subcommunity)}'/>" class="jive-communitylist-med">${subcommunity.name?html}</a></td>
<td class="jive-communitylist-discussions">
<#if jive.isModuleAvailable('forums', subcommunity)><a href="<@s.url value='${JiveResourceResolver.getJiveObjectURL(subcommunity)}'/>?view=${statics['com.jivesoftware.community.action.CommunityAction'].VIEW_DISCUSSIONS}">${forumManager.getThreadCount(subcommunity)?c}</a><#else> </#if>
</td>
<td class="jive-communitylist-documents">
<#if jive.isModuleAvailable('wiki', subcommunity)><a href="<@s.url value='${JiveResourceResolver.getJiveObjectURL(subcommunity)}'/>?view=${statics['com.jivesoftware.community.action.CommunityAction'].VIEW_DOCUMENTS}">${documentManager.getDocumentCount(subcommunity)?c}</a><#else> </#if>
</td>
<td class="jive-communitylist-blogposts">
<#if jive.isModuleAvailable('blogs', subcommunity)><a href="<@s.url value='${JiveResourceResolver.getJiveObjectURL(subcommunity)}'/>?view=${statics['com.jivesoftware.community.action.CommunityAction'].VIEW_BLOGPOSTS}">${blogManager.getBlogPostCount(subcommunity)?c}</a><#else> </#if>
</td>
</tr>
<#if (showChildren && children.get(subcommunity)?exists && children.get(subcommunity).size() > 0)>
<#assign subCommunityCount = children.get(subcommunity).size() />
<#list children.get(subcommunity) as subsubcommunity>
<#if ((subsubcommunity_index == subCommunityCount-1) && (subcommunity_index == communityCount-1))>
<#assign className=''/>
</#if>
<tr class="${className}">
<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>
<td class="jive-communitylist-discussions">
<#if jive.isModuleAvailable('forums', subsubcommunity)><a href="<@s.url value='${JiveResourceResolver.getJiveObjectURL(subsubcommunity)}'/>?view=${statics['com.jivesoftware.community.action.CommunityAction'].VIEW_DISCUSSIONS}">${forumManager.getThreadCount(subsubcommunity)?c}</a><#else> </#if>
</td>
<td class="jive-communitylist-documents">
<#if jive.isModuleAvailable('wiki', subsubcommunity)><a href="<@s.url value='${JiveResourceResolver.getJiveObjectURL(subsubcommunity)}'/>?view=${statics['com.jivesoftware.community.action.CommunityAction'].VIEW_DOCUMENTS}">${documentManager.getDocumentCount(subsubcommunity)?c}</a><#else> </#if>
</td>
<td class="jive-communitylist-blogposts">
<#if jive.isModuleAvailable('blogs', subsubcommunity)><a href="<@s.url value='${JiveResourceResolver.getJiveObjectURL(subsubcommunity)}'/>?view=${statics['com.jivesoftware.community.action.CommunityAction'].VIEW_BLOGPOSTS}">${blogManager.getBlogPostCount(subsubcommunity)?c}</a><#else> </#if>
</td>
</tr>
</#list>
</#if>
</#list>
</tbody>
</table>
</div>
</div>
</div>
</#if>
<!-- END communities list -->
</#if>
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.
Sorry I missed that. To confirm, I should change the description tag to this to to show the correct descriptions?
{sub-subcommunity.description?html}Sorry, the hyphens were just there for readability. It should be similar to other calls on that line, so:
{subsubcommunity.description?html}Ah, that worked. Thanks!
Hi,
We are trying to get the same descriptions to now display on the sub-community home pages (see http://community.lls.org/community/bloodcancer?view=overview for example). Looking at the page code the widget area appears to be the same as the main home page. Is there a differant FTL file for this page/widget? I'm not able to find any documentation on it.
Thank You,
:: Peter
It should be the exact same widget. What type of problems are you having with it?
The communtiy descriptions are displaying on the main home page, but not on sub-pages.
The main page at http://community.lls.org/index.jspa shows descriptions for the communities that have them. One of the main community pages at http://community.lls.org/community/bloodcancer does not show descriptions, even though they exist for "Living with..." and "Let's Just Talk".
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
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