The FanPress CM News System version 5 is a lightweight but powerful content management system for small and mid-size websites, especially blogs and such looking for a post management system in combination with static HTML.
A small live demo system is available at https://area51.nobody-knows.org/fanpress4/.
- Username: preview
- Password: Preview2018_
- FanPress CM 5.0: PHP 8.0 or better
- MySQL/ Maria DB 7 or Postgres 9.4
- complete requirements check will be performed during setup.
The inclusion into a website depends on how you use the system. An assistant for integration is provided. If you do it manually, here are further information:
When using PHP include, first include the API file and create a new API object.
<?php include_once 'fanpress/fpcmapi.php'; ?>
<?php $api = new fpcmAPI(); ?>
The following functions are available:
$api->showArticles(array $params)
: Display active articles, a single article or article archive in front end$params
is an array to further customize the out of the function- count: number of articles per page
- category: select articles of a single category, default is 0
- template: change used template to display articles in frontend
- search: can be used to create search function for articles, only in content
$api->showLatestNews(array $params)
: Display recent news list$params
is an array to further customize the out of the function- count: number of articles per page
- category: select articles of a single category, default is 0
$api->showPageNumber($divider)
: displays current page number.- divider: parameter for page descriptions like "Page XYZ"
$api->showTitle($divider)
: displays article title in HTML <title>- divider: parameter for a separator of your text in <title>
A full list of additional functions can be found in our class documentation.
In case you are using iframes you have to call the controllers manually.
- your-domain.xyz/fanpress/index.php?module=fpcm/list
- show all active articles
- your-domain.xyz/fanpress/index.php?module=fpcm/archive
- show article archive
- your-domain.xyz/fanpress/index.php?module=fpcm/article&&id=A_DIGIT
- show a single article with given id including comments
- your-domain.xyz/fanpress/index.php?module=fpcm/latest
- show the latest news
If you want to provide the RSS feed for your visitors, just create a link to your-domain.xyz/fanpress/index.php?module=fpcm/feed. The link does not depend on the way you're using FanPress CM.
FanPress CM 5 is provided under the GPL v3 and is free to use. Support is provided via GitHub.
Any kind of contribution to general development (code, feature requests/ ideas), translation into various languages, testing and so on is greatly appreciated. Feel free to leave a message.