Bug 793971 (JBEPP-1044)

Summary: facebook integration proof of concept
Product: [JBoss] JBoss Enterprise Portal Platform 6 Reporter: Prabhat Jha <prabhat.jha>
Component: unspecifiedAssignee: Tomas Kyjovsky <tkyjovsk>
Status: CLOSED WONTFIX QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: epp-bugs, plarsen, theute
Target Milestone: ---   
Target Release: 6.0.x   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-1044
Whiteboard: EPP_6_0_0_Candidate
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-24 12:07:20 UTC Type: Feature Request
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Deadline: 2011-10-27   
Attachments:
Description Flags
OneColumnCLVTemplate.gtmpl none

Description Prabhat Jha 2011-08-01 18:58:56 UTC
project_key: JBEPP

Please work with plarsen . He has partly working bits.

Comment 1 Peter Larsen 2011-08-01 20:54:49 UTC
The concept is straight forward; I'm following the same guidelines anyone with a blog or news-site would follow to add the social sharing abilities to a site. Luckily these are functions that are well published and there are several services which creates a full management interface for you. 

For my test, I choose http://www.addthis.com/. They have an extensive API and lots of customization available, while keeping the basics straight forward and un-complicated.

Please note, that this requires a web-user to click on items to be shared; the users uses his/hers credentials on the social media sites to publish the story. This is NOT an automated posting when someone creates a published item in SP.

Comment 2 Peter Larsen 2011-08-01 20:57:31 UTC
I added the following to the OneColumnCLVTemplate.gtmpl which is used by te content-list-viewer to show our news stories in the WCM demo. The "right" way would probably be to create a new template/item and have a check-box where the user can choose if they want a specific item to be publishable. But for my proof of concept, every item is going to be sharable to facebook, twitter and a bunch of other sites:

<!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style ">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div>
<script type="text/javascript">
  var addthis_share =
  {
    url: $itemLink
    title: $itemName
    description: $itemSummary
  }
</script>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4e0f39ec0a02425b"></script>

See uploaded template for specific location.

Comment 3 Peter Larsen 2011-08-01 20:59:14 UTC
deploy/gatein-wcm-extension-2.1.2.ear/ecm-wcm-extension.war/WEB-INF/conf/wcm-artifacts/application-templates/content-list/viewer/list/OneColumnCLVTemplate.gtmpl

Comment 4 Peter Larsen 2011-08-01 20:59:14 UTC
Attachment: Added: OneColumnCLVTemplate.gtmpl


Comment 5 Peter Larsen 2011-08-01 21:00:30 UTC
Issue - I can only get the changed template "discovered" if I change it before I start SP for the first time. I've looked in the administration console, but this specific template is not to be found?? I need a way to change the groovy template without having to clear all of SitePublisher.

Comment 6 Peter Larsen 2011-08-01 21:02:10 UTC
With the code change, each item is rendered with a list of sharing buttons. Click on facebook (F) and you share it with facebook with the summary as the post comment. All of the details can be customized to Nth degree with "addthis" API settings. A lot more details about the ability of the API at https://www.addthis.com/help/client-api.


Comment 8 Jared MORGAN 2011-11-16 04:06:40 UTC
Release Notes Docs Status: Added: Not Yet Documented


Comment 9 hfnukal@redhat.com 2012-01-16 14:16:27 UTC
Labels: Added: EPP_6_0_0_Candidate