/slingcms-twitter-plugin

An Apache Sling CMS plugin to embed Twitter Timelines and Follow Buttons

Primary LanguageJavaApache License 2.0Apache-2.0

CircleCI Quality Gate Status Codacy Badge License

Apache Sling CMS - Twitter Plugin

A plugin to enable twitter timelines and follow buttons in the Apache Sling CMS.

Installation

Download the build the code or latest release and install it into an Apache Sling CMS instance via the OSGi console at {sling_cms_host}/system/console/bundles.

Configuration

To use this plugin, you must enable it in the Component Policy you want in Sling CMS.

Use

Once the twitter components are enabled, you can add it to any page by selecting + then Twitter > Component Name.

The components can also be included from any other component using the following code:

Follow Button:

<sling:include path="{some_path}" resourceType="danklco-com/twitter/components/follow-button" />

Timeline Embed:

<sling:include path="{some_path}" resourceType="danklco-com/twitter/components/timeline-embed" />

Building

This project requires Apache Maven 3 and Java JDK8. To build the project run:

mvn clean install

To install the bundle into a local Sling CMS instance running on port 8080, run:

mvn clean install -P autoInstallBundle