Download the PHP package minimalic/silverstripe-hackernews without Composer
On this page you can find all versions of the php package minimalic/silverstripe-hackernews. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download minimalic/silverstripe-hackernews
More information about minimalic/silverstripe-hackernews
Files in minimalic/silverstripe-hackernews
Package silverstripe-hackernews
Short Description Silverstripe CMS module for Tech news fetched by using Hacker News API
License BSD-3-Clause
Informations about the package silverstripe-hackernews
Silverstripe HackerNews - A Tech News Slider
News scrolling banner (animated) for Silverstripe CMS. The extension can automatically fetch tech news/posts by using Y Combinator's Hacker News API.
Working demo on iloveunix.com at site's footer.
Requirements
- Compatible with Silverstripe versions 4 and 5
- Bootstrap (optional, e.g. silverstripe-bootloader)
Installation
Composer
Rebuild DB
Rebuild DB by appending dev/build?flush=all
to your website's URL or by using shell:
Fetch Hacker News
Fetch first news by appending dev/tasks/FetchHackerNewsTask
to your website's URL or by using shell (from website's root directory):
or (if sake is not available):
Bootstrap extension (optional)
Bootstrap (CSS library) isn't required, but this extension is using Bootstrap's markups for templating.
Own Bootstrap implementation can be used as well as extensions like silverstripe-bootloader
:
Usage
Simply put $HackerNews
inside your template, for example Footer.ss
:
Configuration
Configuration options (e.g. app/_config/hackernews.yml
):
Automatic daily news fetch
Set up cronjob (shell, as web user):
To fetch news every 6 hours starting at 0:42 local server time type in:
(the ~/mywebsite/
is a relative path from your web user starting point - you can also use an absolute path like /var/www/mywebsite/
)
Contribution
To compile SCSS to CSS install sass
, nodemon
and postcss
by using npm
and run (developing only, shell):
License
See License
Copyright (c) 2024, minimalic.com - Sebastian Finke All rights reserved.