001101 / humhub-modules-staticpage

Create 'global' static pages (in folder, database not used).

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Static Page Module

Version: 1.0
Author: Loky
Author website: Stellaris.Agency
Module website: GitHub Repository

Description:

This module allows developers to easily create custom pages for the global view without using the database.
Links to pages are injected into the Top Menu (second top bar on the original theme).

It is not made to 'squash' the CustomPage Module...
It is a 'backend' module.. An alternative for Developer, (as you need to work directly on files) !!

Install:

Clone as 'staticpage' in your 'humhub/protected/modules/' folder.

Help:

As a Dev.Module, there is no online editor. You just have to create a new php page in the 'views/page' folder and add a link in the 'Module.php' !!

If you want to use special css and js code, put your files in the 'assets' folder and update the 'Assets.php' ! In that case, if you change your 'assets files', you will have to clear the cache to see any change. (go to 'Admin/Settings/Advanced' to flush the cache).

To write your page it will be more easy to put your 'special' code (your css for example), 'inline' directly into your php page and when it's ready, creating your files into the 'assets' folder.

About

Create 'global' static pages (in folder, database not used).


Languages

Language:JavaScript 53.7%Language:PHP 42.9%Language:CSS 3.4%