#This software is obsolete.
Allows admins to add custom pages (html, php, or markdown), widgets (php), iframes or external links to various navigations (e.g. top navigation, account menu).
- Status: Alpha v0.2.4-5
- Module website: https://github.com/WASasquatch/humhub-modules-custom-pages-extended/
- Author: Jordan Thompson, Luke
- Author website: Jordan Thompson @ HumHub
- Releases: https://github.com/WASasquatch/humhub-modules-custom-pages-extended/releases
- Widgets - Create widgets on various pages that allow endless possiblies!
- PHP Pages for Inline-Module Creation!
- Active User Model data passed for Inline-Module creation.
- Active Space Model data passed to Space Widgets for Inline-Module creation
- Set link target for external/internal links.
- Set unlisted pages which will not appear on menus
- More Soon ...
- Simply drop the module as custom_pages into your
/protected/modules/
folder - Activate the module
You can update Custom Pages with Custom Pages Extended. To do so, follow these simple directions
- Overwrite the
modules/custom_pages/
with the new source code - Disable the module from Admin Control center
- Enable the module to migrate the database
Alternatively you can update with YIIC with the following command: path/to/php yiic migrate --migrationPath=custom_pages.migrations
- The PHP pages run off the eval() functioning, meaning all supplied input needs to be already in PHP Mode. Do not start, or end with
<?php ... ?>
, instead write as if already in PHP Mode. - One of the most important things to remember is you are writing PHP in the confines of Yii and HumHub and must write within those standards.
- You can use the object var
$user
to access user information such as the user display name$user->displayName
- When using Widget Type Space (Sidebar Widget) you can access the space information with the
$space
variable. For example to access the space name you would use$space->name
A Inline-Module is a form of module that is ran all within one file hooked into the main system it is extending. Usually these forms of modules are included include()
into a application that updates regularily, allowing your code to be seperate and easily modified/re-included.
- Example PHP Page Inline-Module HStats
- Example Widget "Welcome Back"
- Submit your own Widget/PHP examples to
docs/
via pull requests, and help others learn!
For more information visit parent module: https://github.com/humhub/humhub-modules-custom-pages