Development News

Monocms 2.3 - Pages & pagination upgrade

- Loading different folders is now an option in 'All pages', including the home dir.
- Pagination is improved. Unwanted behaviour, when an invalid 'max' value is submitted, is removed. A new xml file is also added to allow a different type of pagination menu, using numbers to navigate instead of the 'previous' & 'next' links. Different pagination for the website is also an option.
- An indicator now appears next to the 'Plugins' menu link, when a plugin is active.
- A few design changes.

Post delete fix - simplexml update

Using the wrong variable name in delete_post() function, in log.php was causing a "file does not exist" error, which did not allow the user to delete post files. Deleting a "not-updated" post file is now working correctly.

One more simpleXMLElement update because of the "using null instead of int" warning(see previous post), this time in data_connect.php.

Fixes available with the latest version MonoCMS22-20240103.

Monocms 2.2-20231024 - Errors fixed - More advanced options

New version for October 2023

Error in pagepost.php is fixed, as previously announced.
Another problem solved, a deprecated feature of simplexmlElement::__construct also fixed (using null instead of int for #2 -$options- parameter). Similar issue with parameter #3 in preg_split, using 'null' instead of 'int', specifically in pagepost.php. These warnings occurred in php version 8.1.

Two more options added in advanced settings: One for turning off animations in the control panel and one to control file types for uploads.php. A xml file tells 'Images' page which file types to allow for upload and which for showing in the list.

Error fix for MonoCMS22-20230906

File: pagepost.php
Error: Undefined index error caused by searching for a non existent name in the $_POST array.

You can change the file containing the error, by opening pagepost.php in a text editor.
On line 79, instead of $p['path'], should be $p['catalogue'].

To be fixed in the next version.
 [1]  2 3 4