News module

The news module in V3 was created with the ModMaker and should therefore also be an example of how a ModMaker module looks like. It has its own administration area, the link to the administration, can be set in the file "/settings/modulebox.php".

Path to administration: "news/admin.php"
$webutler_moduleslist[] = array('News', 'news/admin.php');

Image sizes can be set in file "/data/config.php".
The file "/data/news.db" and the directory "/media" and all subdirectories and files must be writable, CHMOD set according to the data of the provider.

Create a new page and includen the file "view.php" in the content area.

<?PHP require "modules/news/view.php"; ?>

There is also a "latest news" view. These can be displayed on any page, it only needs the page to be specified.

<?PHP
$_MMVAR['newsnewest'] = '1';
$_MMVAR['newsmodpage'] = 'newspage'; //newspage = name of the page that loads the module
require 'modules/news/view.php';
?>

The module database is filled with sample data. The news.db.bak file is an empty database. To delete all of the sample data just delete the /data/news.db file and rename the file news.db.bak in news.db

In order to integrate the news into the search function, simply enter the module name and the module page in the file /settings/searching.php:
$webutler_modulesearches[] = array('news', 'newspage');

By the same token, the news can be integrated into the sitemap, simply enter module name and module page in the file /settings/sitemaps.php:
$webutler_modulesitemaps[] = array('news', 'newspage');

Own news module

Everyone who is not satisfied with the functionality, a news module with the ModMaker can simply click together according to own wishes - for example: multilingual, with categories or multiple images.