# 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"
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 include "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
$_MMBLOCK['newsnewest'] = '1';
$_MMBLOCK['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');

## 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.