Apache Sling CMS - Twitter Plugin
February 25, 2020 ยท View on GitHub
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