Slick is a beautiful app to help create exceptional web content. It's highly optimized for blogging.
It's built on top of Sling, HTL, Oak, OSGi and many other frameworks common to Adobe Experience Manager.
slick.millr.org | experiencemanaged.com
- Creating and editing posts, pages, and media
- Post and Page Scheduling
- WYSIWYG Editor
- RSS 2.0 Feed
- Authentication and user management
- Search
- Dispatcher Caching
- Analytics, SEO, and social integrations
- Pagination
- Basic Localization
- Comment support with ReCAPTCHA
java -jar org.apache.sling.launchpad-8.jar
mvn clean install -PautoInstallBundle
http://localhost:8080
java -Xmx1024M -agentlib:jdwp=transport=dt_socket,address=30303,server=y,suspend=n -jar org.apache.sling.launchpad-8.jar
mvn clean install -PautoInstallBundle -Dsling.host=YOURHOST -Dsling.password=YOURPASSWORD -Dsling.port=YOURPORT
Located at http://localhost:8080/author.html (admin:admin)
<VirtualHost *:80>
ServerName slick.millr.org
ProxyPreserveHost On
ProxyPass / http://localhost:8080/ connectiontimeout=5 timeout=300
ProxyPassReverse / http://localhost:8080/
</VirtualHost>
RewriteEngine on
# Rewrite the homepage to posts
RewriteRule ^/$ /content/slick/publish/posts.html [PT,L]
# Rewrite Fav Icon
RewriteRule ^/favicon.ico$ /etc/slick/designs/slick/dist/img/favicon.ico [PT,L]
# Rewrite our Robots
RewriteRule ^/robots.txt$ /etc/slick/designs/slick/dist/txt/robots.txt [PT,L]
# Rewrite our author
RewriteCond %{REQUEST_URI} !^/apps
RewriteCond %{REQUEST_URI} !^/bin
RewriteCond %{REQUEST_URI} !^/content
RewriteCond %{REQUEST_URI} !^/etc
RewriteCond %{REQUEST_URI} !^/home
RewriteCond %{REQUEST_URI} !^/libs
RewriteCond %{REQUEST_URI} !^/tmp
RewriteCond %{REQUEST_URI} !^/var
RewriteCond %{REQUEST_URI} !^/system
RewriteRule ^/author(.*)$ /content/slick/author$1 [PT,E,L]
# Rewrite everything else to publish
RewriteCond %{REQUEST_URI} !^/apps
RewriteCond %{REQUEST_URI} !^/bin
RewriteCond %{REQUEST_URI} !^/content
RewriteCond %{REQUEST_URI} !^/etc
RewriteCond %{REQUEST_URI} !^/home
RewriteCond %{REQUEST_URI} !^/libs
RewriteCond %{REQUEST_URI} !^/tmp
RewriteCond %{REQUEST_URI} !^/var
RewriteCond %{REQUEST_URI} !^/system
RewriteRule ^/(.*)$ /content/slick/publish/$1 [PT,E,L]
RewriteRule ^/content/slick/publish/(.*)$ /$1 [R=301,NC,L]
- In settings (author/settings.html) turn on dispatcher.
- Editing content or changing settings will automatically trigger a cache flush.
- If ui.apps has changed, you should flush the UI cache.
- You can find a sample dispatch.any file at dispatcher/dispatcher.any
Applies to Java / HTL
- Open Eclipse
- Import Maven project
- Install the org.apache.sling.tooling.support.install bundle to your Sling instance.
- Setup new Sling Server in Eclipse.
- Add your projects (core, ui.apps)
- Start buidling great things.
- Change the password at
{YOUR-WORKSPACE}/.metadata/.plugins/org.eclipse.wst.server.core/servers.xml
if needed.
Applies to SCSS / JS / IMG / TXT
During autoInstallBundle, all JS and SCSS are concatenated, minified, and installed. However, if you want to work without running maven for every change, you can run gulp to push changes to Sling automatically.
- Install
gulp
andgulp-cli
. - In
ui.apps
, install all additional front-end dependencies usingnpm install
. - In
ui.apps
rungulp
. - Start buidling great things in
ui.apps/src/main/resources/jcr_root/etc/slick/designs/...
- You can also specify arguments when running gulp. Example:
$ gulp --slingHost='slick.millr.org' --slingPort=8181 --slingPass=MySuperPassword --slingUser=cmillar