Add a site page Download 1.1

us Theyadora Leeper 5 years ago

Component tool to add a new site page together with its menu link.
Useful for adding permanent extra pages which can be turned on and off by the admin if necessary.

Thanks to Helen Lubar and her calendar mod.. This is a slight reworking of this component with more explanation of the inner workings and used for a slightly different reason.

ADDED BY ADMIN
This component will add a menu link to your sidebar, and a page. You need to edit the component files to change menu name and the page contents.

Files path is components/NewPage

Comments
German Michael Z├╝lsdorff Replied 5 years ago

Thanks for contributing.

But please make sure your code doesn't throw any errors before uploading. I'm getting

[25-Mar-2019 12:41:49 Europe/Berlin] PHP WARNING: 2019-03-25 12:41:49 (CET): "Use of undefined constant fa - assumed 'fa' (this will throw an Error in a future version of PHP)" in file /var/www/html/components/newpage1/ossn_com.php (line 28)
[25-Mar-2019 12:41:49 Europe/Berlin] PHP WARNING: 2019-03-25 12:41:49 (CET): "Use of undefined constant newpage1 - assumed 'newpage1' (this will throw an Error in a future version of PHP)" in file /var/www/html/components/newpage1/ossn_com.php (line 28)
[25-Mar-2019 12:41:49 Europe/Berlin] PHP WARNING: 2019-03-25 12:41:49 (CET): "A non-numeric value encountered" in file /var/www/html/components/newpage1/ossn_com.php (line 28)
[25-Mar-2019 12:41:49 Europe/Berlin] PHP WARNING: 2019-03-25 12:41:49 (CET): "A non-numeric value encountered" in file /var/www/html/components/newpage1/ossn_com.php (line 28)

Component

Developer: Theyadora
License GPL v2
Type: Tools
Requires Ossn Version : 4.x
Latest Version: 1.1
Last Updated 5 years ago
Repository Url View Repository

Versions