Hide Forgot
project_key: JBEPP Please work with plarsen . He has partly working bits.
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.
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.
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
Attachment: Added: OneColumnCLVTemplate.gtmpl
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.
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.
Release Notes Docs Status: Added: Not Yet Documented
Labels: Added: EPP_6_0_0_Candidate